Skip to content

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

Open
rileybolen wants to merge 2 commits intomasterfrom
ms_obo_auth_flow
Open

Add an authentication service for the Microsoft OAuth2 On-Behalf-Of flow#42
rileybolen wants to merge 2 commits intomasterfrom
ms_obo_auth_flow

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.

1 participant