Package io.jmix.securityoauth2.impl
Class UserPasswordTokenGranter
java.lang.Object
org.springframework.security.oauth2.provider.token.AbstractTokenGranter
org.springframework.security.oauth2.provider.password.ResourceOwnerPasswordTokenGranter
io.jmix.securityoauth2.impl.UserPasswordTokenGranter
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.TokenGranter
public class UserPasswordTokenGranter
extends org.springframework.security.oauth2.provider.password.ResourceOwnerPasswordTokenGranter
-
Field Summary
Fields inherited from class org.springframework.security.oauth2.provider.token.AbstractTokenGranter
logger
-
Constructor Summary
ConstructorDescriptionUserPasswordTokenGranter
(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices, org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService, org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory, org.springframework.beans.factory.ObjectFactory<SessionData> sessionDataFactory, RequestLocaleProvider localeProvider, org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClientDetails
protected org.springframework.security.oauth2.provider.OAuth2Authentication
getOAuth2Authentication
(org.springframework.security.oauth2.provider.ClientDetails client, org.springframework.security.oauth2.provider.TokenRequest tokenRequest) protected void
publishInteractiveAuthenticationSuccessEvent
(org.springframework.security.oauth2.provider.OAuth2Authentication oAuth2Authentication) protected Locale
Methods inherited from class org.springframework.security.oauth2.provider.token.AbstractTokenGranter
getAccessToken, getRequestFactory, getTokenServices, grant, validateGrantType
-
Constructor Details
-
UserPasswordTokenGranter
public UserPasswordTokenGranter(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices, org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService, org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory, org.springframework.beans.factory.ObjectFactory<SessionData> sessionDataFactory, RequestLocaleProvider localeProvider, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
getOAuth2Authentication
protected org.springframework.security.oauth2.provider.OAuth2Authentication getOAuth2Authentication(org.springframework.security.oauth2.provider.ClientDetails client, org.springframework.security.oauth2.provider.TokenRequest tokenRequest) - Overrides:
getOAuth2Authentication
in classorg.springframework.security.oauth2.provider.password.ResourceOwnerPasswordTokenGranter
-
publishInteractiveAuthenticationSuccessEvent
protected void publishInteractiveAuthenticationSuccessEvent(org.springframework.security.oauth2.provider.OAuth2Authentication oAuth2Authentication) -
buildClientDetails
-
requestLocale
-