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

Add an authentication service for the Microsoft OAuth2 On-Behalf-Of flow #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rileybolen
Copy link

@rileybolen rileybolen commented Feb 23, 2024

This PR adds a new DfOAuthTwoOboProvider trait, which implements the modified user authentication flow, needed to implement the Microsoft OAuth 2.0 On-Behalf-Of flow. The most important change is to the public function user() function, which requests an initial OAuth token, but now must request two additional access tokens through the OBO flow. One token will be used to access the target API resource, and one will be used to load the authenticated user's data from Microsoft Graph.

See also, the accompanying PR in the df-azure-ad repo: dreamfactorysoftware/df-azure-ad#14

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

1 participant