Allow for configuring an Authentication Converter for OAuth Resource Server opaque tokens #6963
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: duplicate
A duplicate of another issue
Summary
The new opaque token support is great!
I'd love it if the API matched the JWT equivalent with regards to configuration an authentication converter. For example:
Maybe something like:
Where the converter would take a
Map<String, Object>
of claims.Basically just allowing the additional processing to convert custom claims into authorities, similar to what how OAuth2IntrospectionAuthenticationProvider works:
spring-security/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionAuthenticationProvider.java
Lines 129 to 135 in b1195e7
Since this is possible already for JWT tokens adding something similar for opaque tokens would be great.
Thanks!
The text was updated successfully, but these errors were encountered: