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

Support for BearerAuthorizerCallback with MSAL tokens #90

Merged
merged 2 commits into from
Dec 20, 2021

Conversation

manicminer
Copy link
Contributor

@manicminer manicminer commented Nov 29, 2021

Also, use object ID from token claims where possible instead of calling out to AAD Graph or MS Graph. Tokens should always have an oid claim but fallback is provided to query a graph API in the event unmarshaling fails or the claim is missing/empty.

@manicminer manicminer added the enhancement New feature or request label Nov 29, 2021
@@ -100,9 +101,9 @@ func (c Config) BuildOAuthConfig(activeDirectoryEndpoint string) (*OAuthConfig,
return &multiAuth, nil
}

// BearerAuthorizerCallback returns a BearerAuthorizer valid only for the Primary Tenant
// ADALBearerAuthorizerCallback returns a BearerAuthorizer valid only for the Primary Tenant
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Open to suggestions on naming these and/or whether we can break this exported method?

Copy link
Contributor

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@manicminer manicminer merged commit c2f9257 into main Dec 20, 2021
@manicminer manicminer deleted the feature/bearer-authorizer-callback branch December 20, 2021 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants