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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.springframework.security.oauth2.provider.password.ResourceOwnerPasswordTokenGranter
    • publishInteractiveAuthenticationSuccessEvent

      protected void publishInteractiveAuthenticationSuccessEvent(org.springframework.security.oauth2.provider.OAuth2Authentication oAuth2Authentication)
    • buildClientDetails

      protected ClientDetails buildClientDetails()
    • requestLocale

      protected Locale requestLocale()