[Feature Request] Spring boot azure active directory multiple client-id #21254
Labels
azure-spring
All azure-spring related issues
azure-spring-aad
Spring active directory related issues.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
Query/Question
I have a Spring Boot app that use azure active directory with front-end authentication (using AADAppRoleStatelessAuthenticationFilter, similar to this w/o using a login page (it's merly a REST api with two Post endpoints).
I would like to extend it so I could be able to authenticate using multiple sets of client ids, client secrets & app uris, meaning, that each request sent to a specific host will be mapped to it's own AADAppRoleStatelessAuthenticationFilter instance for authentication purposes.
Problem I am having is that trying to autowire multiple instances of AADAppRoleStatelessAuthenticationFilter will end up creating using only 1 set of configurations, even when I used 2 configuration files with @propertysource, every autowired class ended up being created from the same configurations (app-id-uri, secret etc....) and obviously failed to authenticate requests for all other applications.
How can I achieve multi-app authentication?
This is my attempt for breaking the security configuration to different classes:
And my yaml configuration files both look like this:
Setup (please complete the following information if applicable):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: