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

Improve support for Azure AD OAuth 2.0 #630

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

EronWright
Copy link
Contributor

@EronWright EronWright commented Oct 1, 2021

Motivation

This PR improves support for Azure AD and other OAuth 2.0 authorization servers.

Modifications

  1. Support the passing of scope parameters to various OAuth 2.0 API calls.
  2. Use well-known claims for user name when possible. The helper function looks for name and sub claims to provide a user name hint to the application. It is for informational purposes only.
  3. Support responses with Content-Type headers that contain extra parameters. Use the golang mime parser for this.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is partly covered by tests; more tests will be contributed in a follow-up.

Does this pull request potentially affect one of the following parts:

no

Documentation

- use well-known claims for user name
- support content types with encodings
- support scope parameter
-
@merlimat merlimat merged commit bfbb2a2 into apache:master Oct 5, 2021
@merlimat merlimat added this to the 0.7.0 milestone Oct 5, 2021
@merlimat merlimat deleted the ewright/azuread branch October 5, 2021 15:52
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.

None yet

3 participants