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
Constructors Constructor Description OpenIdConnectAuthenticationProvider(OpenIdConnectSettings openIdConnectSettings, io.jsonwebtoken.JwtParser jwtParser, OpenIdConnectClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
boolean
supports(Class<?> authentication)
-
-
-
Constructor Detail
-
OpenIdConnectAuthenticationProvider
public OpenIdConnectAuthenticationProvider(OpenIdConnectSettings openIdConnectSettings, io.jsonwebtoken.JwtParser jwtParser, OpenIdConnectClient client)
-
-
Method Detail
-
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
public boolean supports(Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-