-
Notifications
You must be signed in to change notification settings - Fork 2k
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] Authentication in a Stateless API using the Microsoft Graph API #15169
Comments
Thanks for posting your question @fgoulet. @jialindai could you please assist routing this? |
Hi chenrujun, Unless I'm wrong, Staleless is supported only for Azure AD endpoints, ID Tokens v1.0. We need support for Microsoft identity Platform endpoints, ID Tokens v2.0, the one you obtains with Microsoft Graph. You already have support for V2 tokens in your backend authentication (and state full) solution. We would need the same but with front end authentication. |
Hi @fgoulet just to make certain, we currently support backend authentication via both Azure AD (V1) and Microsoft identity Platform (V2) endpoints to Microsoft Graph API and Azrue AD Graph API. And your expectation is that we could support front end authentication in a stateless API using Microsoft Graph API on Microsoft identity Platform (V2) endpoints? |
Yes, exactly. |
Hi @fgoulet . For stateless authentication with front end, we provide an |
Hi @yiliu, This sample is for Azure AD endpoints with v1 id_token. Our Angular 10 application use the MSAL library that require Microsoft identity Platform endpoints with v2 id_token. AADAppRoleStatelessAuthenticationFilter decode v1 token only. The difference is documented here
|
Hi @fgoulet , sorry I forgot to clarify it clearly in the last reply. The stateless authentication sample can work for both v1 and v2 id_token by specifying different sign in url in the |
Hi @yiliuTo , That could be related to this issue microsoft/azure-spring-boot#476 I think a complete working sample for this scenario is much needed. |
Hi @fgoulet , thanks for your reporting, and I am afraid not just a sample is needed here, but our And if your spring boot rest API doesn't use Microsoft Graph API but has own logic, then you can modify content of the For your feature request, we could have a further discusstion. What do you think if we replace the checking for |
Thanks @yiliuTo , your explanations make things a little more clearer. I realize that I do not have the needed knowledge right now to formulate a feature request that would fit our needs. I will do some more readings and I will get back to you hopefully with a meaningful request. |
@fgoulet Here are some docs about the |
Hi @fgoulet , having discussed with our team, we put this feature that support OBO flow to acquire access tokens for Microsoft Graph API on top of the implicit flow in our roadmap. If you are urgent for the feature then I suggest that you could develop this yourself. Also PRs are welcome ^v^ |
Hi @fgoulet, we've just released our new aad starter, please check this CHANGELOG. Your scenario is close to our resource server accessing other resource servers case, which leverages the OBO flow of Azure AD. Please check these references to see whether it fits in your case: https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/spring/azure-spring-boot-starter-active-directory#oauth-20-on-behalf-of-flow-web-apis |
Yes, it looks like it cover our needs. Thank you. |
[security RP] mgmt, fix for java with directive (Azure#15169) * [security] mgmt, fix for java with directive * fix readme
We have an Angular 10 application that use MSAL Angular library to authenticate with Azure AD. We need a Spring Boot Rest API
that will accept IDToken v2 from the angular app. So our rest api must use the Microsoft Graph API. We also need that our rest api be configured for Stateless authentication.
I could not found any sample for this scenario. Is that cover by the this sdk ?
The text was updated successfully, but these errors were encountered: