Skip to content

Multi oauth2 clients - 1 fixed per session #190

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

You must be logged in to vote

If your intention is to shrink the number of login options to 1 so that the login screen redirects immediately instead of displaying choices, you can have a look at the LoginController from the resource-server_with_ui tutorial.

If you want to limit the number of possible sessions for a user (a user could still call another of the authorization-code initiation endpoint directly, without using the login screen) you'll have to look into http.sessionManagement(sm -> {...}). Be aware that:

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by veganchamp
Comment options

You must be logged in to vote
2 replies
@veganchamp
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