Package swiss.trustbroker.oidc
Class CustomTokenIntrospectionAuthenticationProvider
java.lang.Object
swiss.trustbroker.oidc.CustomTokenIntrospectionAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class CustomTokenIntrospectionAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
Used to check tokens for validity and content on the OIDC provider
org.springframework.security.oauth2.server.authorization.authentication.OAuth2TokenIntrospectionAuthenticationProvider
NOTE We copied this class including their to-do remarks because this one does OIDC and in the XTB set-up the default one does
SAML2 introspection. A bit risky code duplication but not a central functionality in XTB.
Javadoc of original class:
An
AuthenticationProvider implementation for OAuth 2.0 Token Introspection.- Since:
- 0.1.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCustomTokenIntrospectionAuthenticationProvider(ClientConfigInMemoryRepository registeredClientRepository, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, RelyingPartyDefinitions relyingPartyDefinitions, TrustBrokerProperties trustBrokerProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) boolean
-
Constructor Details
-
CustomTokenIntrospectionAuthenticationProvider
public CustomTokenIntrospectionAuthenticationProvider(ClientConfigInMemoryRepository registeredClientRepository, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, RelyingPartyDefinitions relyingPartyDefinitions, TrustBrokerProperties trustBrokerProperties)
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-