-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Enhancement][L] Enable OBO for SP (ADAL to MSAL Migration Issue) #1845
Comments
@niruatweb: there is no user with a SP. it's not possible to use a UserAssertion? |
Hi @jmprieur , but how would i be able to get groups of the spn in this case. Can't i get an groups of SPN or deamon app? |
@niruatweb Are you trying to find the groups that the service principal owns, or something else? Please clarify. |
@dkershaw10 i am trying find the group ids of which service principal is part of. |
Gotcha - so you want all the groups that the service principal is a member of. Microsoft Graph can give you this answer. If you are looking for this information to show up as a claim in the access token, I don't know if that is supported. We'd have to get others involved who work on the Identity STS. It would be worth creating a new and separate question on Microsoft Stack Overflow for that. |
Groups are coming as part of access token. I believe i still need to pass OBO in this case. I hope MSAL bug to get OBO will be fixed soon. |
Hi @jmprieur I have three options to generate OBO,
I will go with one of the option based on the time it would take for MSAL fix. What is your suggestion? How many days does it take? |
cc: @henrik-me, @bgavrilMS, @trwalke @neha-bhargava |
@jmprieur Below is the code, let me know if you want that cert that i am pointing as thumbprint. ''' var _confidentialClientApp = MSAL.ConfidentialClientApplicationBuilder
|
See possible solution: Penguinwizzard@de00f61 @bgavrilMS @henrik-me can we add this to the following release? |
@jmprieur to provide API review doc for this |
If we want to test this, we can/should use PPE daemon app calls web API call graph. The web API calls graph on behalf of the daemon |
Work
Which Version of MSAL are you using ?
4.13.0. I have described the issue in stack overflow. https://stackoverflow.microsoft.com/questions/198842. Generating OBO for SPN fails with "client info is null"
Platform
net45
What authentication flow has the issue?
Other? - please describe;
OBO for users work fine but not for groups.
Is this a new or existing app?
YES
Repro
Expected behavior
OBO should be generated
Actual behavior
Exception. Response comes from token endpoint but fails during deserialization of response.
Possible Solution
Fix in the requestBase.cs
Additional context/ Logs / Screenshots
Add any other context about the problem here, such as logs and screebshots. Logging is described at https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/logging
The text was updated successfully, but these errors were encountered: