-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Identity] Migrate AuthorizationCodeCredential to use MSAL #15188
Comments
I think I found a bug on MSAL, but I could be wrong. When using and then I call to the confidential app’s
I get an undefined result? |
At this point, I'm seeing two things:
I've shared the code, my local configuration, and the configuration I'm using on the Azure portal with the MSAL team and with the .NET SDK team and everything seems correct. We don't yet understand what is going on. It seems likely to be an issue with how my app registration is set up, but it could be something else, or even a bug in the code, either on how the requests are represented or on the flow. I've reached out to the MSAL team asking them if they could provide us some small documentation on how to set up acquireTokenByCode for the confidential client. Once we have more information, I'll continue working on this issue. |
The code in #15851 should work. I did test it some months ago, but I’m asking @KarishmaGhiya to verify. |
AuthorizationCodeCredential
currently does not use MSAL. It uses the older approach we had, where we called to the HTTP methods ourselves directly. Moving this to MSAL should be very easy, since we'll be using MSAL'sacquireTokenByCode
, HOWEVER,acquireTokenByCode
does not implement PKCE by default, we'll need to do the same we'll be doing forInteractiveBrowserCredential
for Node, meaning this issue: #15168 (we should probably re-use code for this, of course).The text was updated successfully, but these errors were encountered: