Skip to content

What should I expect from the logout ? #160

Answered by ch4mpy
GBincaz asked this question in Q&A
Discussion options

You must be logged in to vote

You cannot revoke JWTs which always are read-only, but it's ok as long as this JWTs are given only to actors that you can trust to be "stateless" (like your resource servers), or actors which you can trust to delete tokens when they end a user session (like your BFF and authorization server) .

What you should do is terminate the user session at two places:

  • on the OAuth2 client(s) with oauth2Login (the BFF)
  • on the authorization server (so that new tokens are not emitted silently on the next authorization code flow, which would make the user feel like he did not log out from the BFF)

By setting the OidcClientInitiatedServerLogoutSuccessHandler, you're asking the BFF to create the URI to l…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@GBincaz
Comment options

@ch4mpy
Comment options

@GBincaz
Comment options

Answer selected by GBincaz
Comment options

You must be logged in to vote
2 replies
@GBincaz
Comment options

@ch4mpy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants