Repository navigation
homepage redirect after keycloak login #13935
Unanswered
Dipanshu1043
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Everyone,
we are using ReactKeycloakProvider with Keycloak-js adapter for authentication.
Once Authentication is Successful, we are not able to redirect the application to the Homepage using keycloak.login(redirectUri:'homepage')
As an alternative approach, we tried executing redirection through a Custom component . But, we have a challenge while refreshing the page, the component gets executed and the application goes back to the homepage irrespective of the current page from where the user clicked the refresh button
Tried tracking the OnEvent method from Keycloak to see if we can differentiate the login and refresh events, but "OnAuthSuccess" is fired on Login as well as page refresh event.
Kindly suggest possible ways to Redirect to homepage on Login and to control redirection on page refresh.
All reactions