Class OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider
java.lang.Object
io.jmix.authserver.authentication.OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
An
AuthenticationProvider
implementation for the OAuth 2.0 Resource Owner Password Credentials Grant.-
Constructor Summary
ConstructorDescriptionOAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider
(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) boolean
-
Constructor Details
-
OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider
public OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService)
-
-
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
-