New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keycloak logout not working when used with next-auth
#2
Comments
@woppers Thank you for providing a detailed description of the situation -- really appreciate that! At the moment, based on what I've heard from the other issues in the So assuming that's the case, I'm not exactly sure how our keycloak passport strategy fits into this, because there is no explicit logout-related functionality provided in this package. Perhaps there is a missing function? I am happy to add whatever support is required to make that happen, but similar to yourself, I'm struggling to figure out what the required interface is here. The other potential issue that comes to mind is something related to the user profile, i.e., it might be missing a field that |
@svarlamov Thanks a million for getting back to regarding this issue. I really appreciate it 🙂 I was hoping/praying that you may have some Jedi magic trick up your sleeve that would help me figure this out 😂 Thanks for the advice. It's after narrowing down the search for the root problem. I'll keep digging into this and if/when I come up with a solution, you'll be the first to know 💪 I'll close this question and report back if I figure it out. |
@woppers did you manage to figure out how to use nextjs with keycloak? |
@phillystafford @svarlamov Any progress on this issue? |
We have the same issue also here.. Any progress on this? The signout method from next-auth does not call the logout method of keycloak, resulting on a session still active on the server. The user is never asked again to enter the password. Which is critical for us after the signout. Thanks a lot for your input on this. |
Hi, I was wondering if you could help me with the following issue please?
I'm trying to implement an authentication flow using
next-auth
and thiskeycloak-passport
strategy.Both libraries work great together when I log into my
keycloak
instance but when I log out, I seem to be logged out on the client side. But when I try to log in again usingkeycloak-passport
I get theUnable to sign in
page fromnext-auth
It seems to be logging out from the client side but the session seems to be persisted on the server side. When I hit my login page directly it redirects me to the account admin section on my keycloak instance so I'm definitely still logged in on the server.
I've tried to debug the logout flow to see if I can determine the problem but none of the
console.log
statements I placed in thehandleSignOutSubmit()
function are firing.I opened an issue on the
next-auth
repo here which goes into more detail.I'd be really grateful if you could point me in the tight direction on this please
The text was updated successfully, but these errors were encountered: