Class OpenIdConnectAuthenticationProvider
java.lang.Object
com.aquima.web.boot.security.openid.OpenIdConnectAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class OpenIdConnectAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
This class represents the authentication provider for login with openid connect. Accepts an
OpenIdConnectAuthenticationToken and returns an OpenIdAuthentication object after authentication.
- Since:
- 11.3
- Author:
- Timea Popa
-
Constructor Summary
ConstructorsConstructorDescriptionOpenIdConnectAuthenticationProvider
(OpenIdConnectSettings openIdConnectSettings, io.jsonwebtoken.JwtParser jwtParser, JwtClaimMapper jwtClaimMapper, OpenIdConnectClient client) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) boolean
-
Constructor Details
-
OpenIdConnectAuthenticationProvider
public OpenIdConnectAuthenticationProvider(OpenIdConnectSettings openIdConnectSettings, io.jsonwebtoken.JwtParser jwtParser, JwtClaimMapper jwtClaimMapper, OpenIdConnectClient client)
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-