- Treat each keycloak realm as an independent tenant.
- A backend application that serves multiple tenants then needs to identify tokens from multipe issuers. (In keycloak every realm gets a different issuer URI.)
- This app demos how to do that - uses spring security documentation as a base https://docs.spring.io/spring-security/reference/servlet/oauth2/resource-server/multitenancy.html#oauth2resourceserver-multitenancy
- Tenants iss claims are hardcoded but for production they can easily be fetched dynamically from a configmap or DB, app does not need to restart.
-
Notifications
You must be signed in to change notification settings - Fork 0
prasanna4742/SpringAppWithMultiTenantAuth
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published