-
Notifications
You must be signed in to change notification settings - Fork 39
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
Change WindowsProvider permission scope separator to space #193
Change WindowsProvider permission scope separator to space #193
Conversation
Thanks Richasy for opening a Pull Request! The reviewers will test the PR and highlight if there is any merge conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
@Richasy can you share some more details about the failure/error you are seeing? It seems like you are fixing a bug, but it's hard to tell if this could be breaking functionality. I think understanding the error will help us figure out which it is. |
@shweaver-MSFT Here are the error message:
Code here: // string[] RequestScopes = { "User.Read", "Tasks.ReadWrite" };
var webAccountProviderConfig = new WebAccountProviderConfig(WebAccountProviderType.Any, Constants.GraphClientId);
var authProvider = new WindowsProvider(RequestScopes, webAccountProviderConfig); I hide the |
7bb9105
to
d87e067
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some digging through the source code for MSAL. They mostly deal with scopes in an IEnumerable<string>
, but
this extension method is used to create the scopes string for many of the requests types:
Posting the image of that function here as well for full context, nice find @Arlodotexe, still would be good to know where that's called out in the docs. Following up with the Graph doc team. |
d87e067
to
17cffdf
Compare
Ah, got pointed to the doc finally here: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-protocols-oidc#send-the-sign-in-request
|
Fixes #192
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Failed when trying to grant AAD multiple permissions
What is the new behavior?
Grant AAD account multiple permissions normally
PR Checklist
Please check if your PR fulfills the following requirements:
Other information