Package swiss.trustbroker.oidc
Class CustomOAuth2TokenExchangeAuthenticationConverter
java.lang.Object
swiss.trustbroker.oidc.CustomOAuth2TokenExchangeAuthenticationConverter
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationConverter
public class CustomOAuth2TokenExchangeAuthenticationConverter
extends Object
implements org.springframework.security.web.authentication.AuthenticationConverter
Token exchange authentication converter.Copied from spring-security-oauth2-authorization-server:
org.springframework.security.oauth2.server.authorization.web.authentication.OAuth2TokenExchangeAuthenticationConverter.
That class is final, so we cannot subclass it.
The copying means we are tied to an internal class from Spring Authentication Server.
Original Javadoc: Attempts to extract an Access Token Request from HttpServletRequest for the OAuth 2.0 Token Exchange Grant and then converts it to an OAuth2TokenExchangeAuthenticationToken used for authenticating the authorization grant.
- Since:
- 1.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.springframework.security.core.Authenticationconvert(jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
CustomOAuth2TokenExchangeAuthenticationConverter
public CustomOAuth2TokenExchangeAuthenticationConverter()
-
-
Method Details
-
convert
public @Nullable org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request) - Specified by:
convertin interfaceorg.springframework.security.web.authentication.AuthenticationConverter
-