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

Allow customizing the strategy for resolving the principal in OAuth2ClientHttpRequestInterceptor #15826

Closed
sjohnr opened this issue Sep 18, 2024 · 0 comments
Assignees
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Milestone

Comments

@sjohnr
Copy link
Member

sjohnr commented Sep 18, 2024

Similar to OAuth2ClientHttpRequestInterceptor.ClientRegistrationIdResolver, we need a way to customize how the principal (Authentication) is resolved. This is particularly important when applications are using the client_credentials grant type, which typically requires access tokens to be scoped to the application instead of the current user.

Related gh-13588, gh-15299

@sjohnr sjohnr added type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) labels Sep 18, 2024
@sjohnr sjohnr added this to the 6.4.x milestone Sep 18, 2024
@sjohnr sjohnr self-assigned this Sep 18, 2024
sjohnr added a commit to sjohnr/spring-security that referenced this issue Sep 20, 2024
sjohnr added a commit to sjohnr/spring-security that referenced this issue Sep 20, 2024
sjohnr added a commit to sjohnr/spring-security that referenced this issue Sep 20, 2024
sjohnr added a commit to sjohnr/spring-security that referenced this issue Sep 20, 2024
@sjohnr sjohnr closed this as completed in e11c188 Sep 27, 2024
@sjohnr sjohnr modified the milestones: 6.4.x, 6.4.0-RC1 Sep 27, 2024
@sjohnr sjohnr added the status: duplicate A duplicate of another issue label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant