Class CustomRedirectUriValidator

java.lang.Object
swiss.trustbroker.oidc.CustomRedirectUriValidator
All Implemented Interfaces:
Consumer<org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext>

public class CustomRedirectUriValidator extends Object implements Consumer<org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext>
Partially copied from spring-security-oauth2-authorization-server: org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationValidator Javadoc of original class: A Consumer providing access to the OAuth2AuthorizationCodeRequestAuthenticationContext containing an OAuth2AuthorizationCodeRequestAuthenticationToken and is the default authentication validator used for validating specific OAuth 2.0 Authorization Request parameters used in the Authorization Code Grant.

The default implementation first validates OAuth2AuthorizationCodeRequestAuthenticationToken.getRedirectUri() and then OAuth2AuthorizationCodeRequestAuthenticationToken.getScopes(). If validation fails, an OAuth2AuthorizationCodeRequestAuthenticationException is thrown.

Since:
0.4.0
See Also:
  • OAuth2AuthorizationCodeRequestAuthenticationContext
  • OAuth2AuthorizationCodeRequestAuthenticationToken
  • OAuth2AuthorizationCodeRequestAuthenticationProvider.setAuthenticationValidator(Consumer)
  • Constructor Details

    • CustomRedirectUriValidator

      public CustomRedirectUriValidator()
  • Method Details

    • accept

      public void accept(org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext authenticationContext)
      Specified by:
      accept in interface Consumer<org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext>