Skip to content

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

Merged
jennyf19 merged 1 commit into
AzureAD:masterfrom
ThreeSevenths:threesevenths/bugfix
Aug 3, 2021
Merged

jennyf19 merged 1 commit into
AzureAD:masterfrom
ThreeSevenths:threesevenths/bugfix

Conversation

@ThreeSevenths

Copy link
Copy Markdown
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.

@jennyf19 jennyf19 left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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