question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keycloak login sequence is not triggered

See original GitHub issue

I use the component just like in the example for keycloak and I expect to be redirected to a login page or at least some kind of action but nothing happens. The app just loads the initial page without triggering any login sequence.

Any ideas what might be wrong? Maybe this is keycloak specific?

import React from 'react';
import BaseLayout from './BaseLayout';
import { QueryClientProvider } from 'react-query';
import ReactQueryClient from '../api/rq-client';
import { AuthProvider } from 'react-oidc-context';

const oidcConfig = {
  authority: 'http://192.168.0.230:8081/auth/realms/xxx',
  client_id: 'zzz',
  redirect_uri: 'http://localhost:8000/'
};

export default ({ children }) => {
  return (
    <AuthProvider {...oidcConfig}>
      <QueryClientProvider client={ReactQueryClient}>
        <BaseLayout>{children}</BaseLayout>
      </QueryClientProvider>
    </AuthProvider>
  );
};

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pamapacommented, Feb 18, 2022

You can use the onSigninCallback to setup what ever you like after the sigin-in…

0reactions
cemremengucommented, Feb 19, 2022

Thank you for your hard work, you saved us!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server Administration Guide - Keycloak
If Keycloak does not find the user, Keycloak iterates over each User Storage provider for the realm until it finds a match. Data...
Read more >
Unable to authenticate the login of application user using ...
Tried to hit POST /authenticate from postman and browser it's working for me. Authenticate working CURL REQUEST: curl --location --request POST ...
Read more >
Infinite Loop with url params after redirection from keycloak ...
Once the root url is loaded, the login redirect is triggered to keycloak. And the process repeats again. I tried to debug this...
Read more >
Unable to Login or Search for User in RH-SSO (ERROR
Searching for users in the RH-SSO admin console, results in the following error: Raw. DEBUG [org.keycloak.storage.ldap. · When user tries to ...
Read more >
A Quick Guide To Using Keycloak For Identity And Access ...
In this blog we will share how to use Keycloak for Identity and Access Management. but first here are some Frequently asked questions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found