add azure oauth v2.0 endpoint support #3224
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a (very simple) additional authentication class that uses Azure AD's v2.0 oauth endpoint. This one uses the standard openid, email, and profile scopes instead of Azure-specific ones.
In particular, I couldn't get the default azuread auth to work with accounts that require MFA.
Azure's own docs suggest using V2.0 for all new applications:
https://docs.microsoft.com/en-us/azure/active-directory/azuread-dev/v1-overview