Skip to content
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

Fixes a KeyNotFoundException when calling WithAppOnly(), WithScopes() #1365

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

ThreeSevenths
Copy link
Contributor

Using Microsoft Graph Client, calling WithAppOnly() or WithScopes() results in a KeyNotFoundException. In SetParameter(), the key is typeof(AuthenticationHandlerOption).ToString() which results in the name being set as "Microsoft.Graph.AuthenticationHandlerOption" while the value is actually present as "AuthenticationHandlerOption". This change retrieves the Name property of the Type which will always return only the class name which will be consistent with the name that is present in the dictionary.

Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks so much :shipit:

@jennyf19 jennyf19 added this to the 1.16 milestone Aug 3, 2021
@jennyf19 jennyf19 merged commit 7fc0499 into AzureAD:master Aug 3, 2021
@jennyf19
Copy link
Collaborator

Included in 1.16 release

thanks again for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants