Skip to content

Multitenant - Dynamic ClientRegistrationRepository #230

Answered by ch4mpy
andrei-vss asked this question in Q&A
Discussion options

You must be logged in to vote

If you haven't read this article already, you should. In the solution I built there, I expose a controller endpoint on the BFF with all the "login options" it supports (one per registration with authorization_code).

This list is static, but you could adapt it easily once you have written a mutable
ReactiveClientRegistrationRepository (again, be careful to make your implementation thread-safe). Of course, instead of building the list in the constructor like I did, you should re-evaluate it each time the login options are queried.

The same controller would probably have another endpoint to create the new "tenants" (add registrations - and optionally providers - to the mutable repo).

From th…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ch4mpy
Comment options

Comment options

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

Answer selected by andrei-vss
@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
3 participants