-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQ] Update sample of Azure AD B2C resource-server #551
Comments
Hello Do you have any news or at least any documentation on this topic for azure spring cloud 5 ? I'm not finding this documentation or example anywhere on how to use azure spring cloud 5 to setup authentication with azure ad. Thanks a lot in advance |
@remybd Thanks for reaching out. @moarychan is working on this. |
Hi @chenrujun and @remybd , the use of |
Hello I'm back after a few month on this topic. I follow this exemple https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/spring-security-support?tabs=SpringCloudAzure5x#usage-3-accessing-a-resource-server First difference with the documentation, it seems I need to use Problem, when I'm setting up a user flow, the preconfiguration switch automatically to a client flow (trying to log me with redirection). I probably miss something in the documentation. Do you kow how to force the flow to be a resource server ? like for application type for normal azure ad ? I would still be interested by the running example. Do you now if they are plan in the coming weeks ? Thanks and sorry to restart this thread |
Hi @remybd , thanks for your update! The Please check this section Samples for Spring Boot 3 to work with Spring boot 3, and the resource server sample is aad-b2c-resource-server, please try this sample. |
Hello Thanks for the fast reply. I have tried to upgrade the pom and to use the new spring security from the documentation. But then I encounter the same problem : the backend is trying to login me as a client and not as a server. Are you able to make an example work on your side with spring 3 and azure 5 ? for resource server ? I will try to deep dive in the code to understand better what I'm missing |
My understanding looking at the code is that AadB2cOAuth2ClientConfiguration is automatically setup when there is a user flow setup. In this class, there is no possibility to do differentiate between a client flow and a resource server flow. So the client flow is configure and take the advantage compare to the resource server configuration.
so either we have a user flow configure and the Client Configuration is activated or we don't have a user flow, but in this case the url to contact the ad b2c will be wrong with null inside because it needs the user flow. I'm opening a bug on the main repository. Thanks for your help On the aad library, there is another condition
|
Context
Customer has more asks for Azure AD B2C resource-server: https://github.com/MicrosoftDocs/azure-dev-docs/issues/937#issuecomment-1303066933
struggling a lot with this one.
usse org.springframework.security.web.SecurityFilterChain
admins). But from what I can see there is no support for user groups in B2C.
Goal
The text was updated successfully, but these errors were encountered: