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 optional OAuth2 resource parameters #218

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

fredrikhr
Copy link
Contributor

RFC 8707 Resource Indicators for OAuth 2.0 defines the resource parameter in an OAuth2 token request.

[This RFC defines] request parameters that enable a client to explicitly signal to an authorization server about the identity of the protected resource(s) to which it is requesting access.

Some Token Authorization services require the use of the resource parameter in addition to or instead of the scope and audience parameters for multi-tenant or multi-service scenarios.

An example of this is the Azure Access Control Service which is used to obtain App-Only access tokens for SharePoint Online. The resource parameter controls for which SharePoint online instance the access is granted instead of issuing an access token for all possible SharePoint services.

In httpyac the resource parameter should be optional and behave very similar to the audience parameter.

@AnWeber AnWeber merged commit fb33cb0 into AnWeber:main Mar 9, 2022
@AnWeber
Copy link
Owner

AnWeber commented Mar 9, 2022

thx

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

2 participants