so I have micro service application where one of those called auth_manager used to authenticate and register new user , I use the auth_manager to get token for user from keycloak , and other services that use that token to secure the request, in my auth_manager I implemented multi tenancy with multiple realms on keycloak and secured some of the apis, my issue is adding thte implementation for multi tenancy in spring security for each service is costly, therefore I decided to expose my own jwks endpoint that return the required jwks from keycloak and passed to the other resource services, my initial idea is exposing an endpoint in the auth_manger service, and use the endpoint to configure the jwks url in the spring security for other services, but as I mentioned that I have a a multi tenancy app therefore the url could change upon different realm, but I am stuck on how can I achieve this, any help would so much appreciated.
override the keycloak jwks url for a multi tenancy app?
167 Views Asked by kikicoder At
1
There are 1 best solutions below
Related Questions in SPRING-BOOT
- Multi Tenancy in Spring - Partitioned Data Approach
- I have created a spring boot application with spring data JPA, Rest ,oracle and i am getting this ORA-00933: SQL command not properly ended
- Springboot: How to get an entity optional property and check null?
- How to create jasper report in spring boot rest api with jpa
- JSON Body is Not Passing Certain Strings
- Unresolved reference error is showing up after adding the dgs codegen plugin successfully
- Transaction silently rolled back
- JPA buddy error when generating JPA Entities from DB
- Migrating Spring Boot 2 to 3 throws org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
- Hibernate SQL Error: Missing FROM-clause entry for table "th1_1"
- Appwrite and / or Spring Boot Backend
- Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. I'm using Postgresql
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- springboot class org.hibernate.mapping.Bag cannot be cast to class org.hibernate.mapping.SimpleValue
- Spring security causing 404 with message "No static resource login"
Related Questions in KEYCLOAK
- Keycloak: How to override Welcome Screen redirect behavior (to custom realm, instead of master realn/admin)
- X-FRAME-OPTIONS header missing on step1.html of Keycloak
- Keycloak: providing user attribute on register (manual registration and register from IdP)
- single signout is not working in keycloak spring security adpter 18.0.2
- Customize Authorization Code claims with Spring OAuth2 Authorization Server 3.2.4
- KeyCloak Handshake causing timeout
- Configuring Keyclock 22.0.4 as a key manager in WSO2 APIM
- How to set an empty list as a claim in Keycloak token after custom mapper
- OAuth access token attribute based reverse proxying of http ressources
- Keycloak: Receiving a "Invalid parameter: redirect_uri" when reloading the page manually
- Dynamically generate registration forms based on the client URI in Keycloak
- Keycloak with Google login and role based access not working
- Keycloak session doesn't expire
- Add custom attributes on terms.ftl page for Keycloak
- Is it ok to proxy the Keycloak APIs
Related Questions in OPENID-CONNECT
- Error from Identity Provider - OIDC Scope Error
- Blazor Web App (.Net 8) with oidc loses auth when switching to client
- Call Databricks API from an ASP.NET Core web application
- OIDC Error after adding Microsoft.IdentityModel.JsonWebTokens
- Implementing IDP Initiated Flow Using OIDC
- How can I add an identity provider to an existing user in an AWS Cognito user pool using the OIDC protocol?
- How can I protect an Java Spring boot API against Azure AD B2C if I only have an id_token?
- Migrating .gitlab-ci.yml from Terraform to OpenTofu with OIDC Setup
- Cookie not being set when using Blazor server App with individual authentication hooked up with Duende IdentityServer
- Blazor Web Assembly Standalone OIDC
- Azure AD OIDC authentication for S3 upload
- OIDC - Dummy Redirect URL a security issue?
- OPEN ID connect request to refresh access token
- Prevent deeplinking on redirect
- Google OIDC: How to get the member_key of an external SSO user?
Related Questions in JWK
- Is there a way to use python authlib.jose.ec_key library to generate a JWK public and private key pair?
- How to check the validity of a signature using JWKs and the base string the signature was created against
- How to convert JWK to PEM format in Delphi?
- How to get JWK(Json Web Key) for my AWS Cognito User Pool?
- get_signing_key_from_jwt throws error Unable to find a signing key that matches kid
- How to decrypt JWE has alg ECDH-ES+A256KW use php
- How to set key_ops in generating JWK using java script?
- What is the easiest way to convert a PKCS8 formatted EC Key string into a JWK using ECSDA?
- Spring Boot Security Resource Server - how to reload a JWKset on JWT validation failure
- Signature verification for JWT issued by Azure
- How to get JWK URL for epic fhir resources?
- Getting System.FormatException: while reading "n" and "e" records from jwk file hosted on a server
- How to reconstruct an RSA public key from JWK
- HAPROXY jwt_verify() always returns Unknown Certificate (-5)
- Validating JWT token using x5c claim from jwks, good or bad practise?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It would not if you were using my starter: configuring a client or a resource server with "static" multi-tenancy is achieved with 0 Java conf (just application properties).
In the case where you want to achieve "dynamic" multi-tenancy, you'd still benefit from "my" starter by having just the authentication manager bean to expose (which could be easily achieved with a spring boot starter of your own).