Class GigyaCustomTokenGranter

java.lang.Object
org.springframework.security.oauth2.provider.token.AbstractTokenGranter
de.hybris.platform.gigya.gigyafacades.token.GigyaCustomTokenGranter
All Implemented Interfaces:
org.springframework.security.oauth2.provider.TokenGranter

public class GigyaCustomTokenGranter extends org.springframework.security.oauth2.provider.token.AbstractTokenGranter
A custom token granter class which gets invoked by the oauth server to replicate customer from CDC to commerce and return a valid token for such customers
  • Field Summary

    Fields inherited from class org.springframework.security.oauth2.provider.token.AbstractTokenGranter

    logger
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    GigyaCustomTokenGranter(org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices, org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService, org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory, GigyaLoginService gigyaLoginService, GigyaLoginFacade gigyaLoginFacade, de.hybris.platform.site.BaseSiteService baseSiteService, org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.oauth2.provider.OAuth2Authentication
    getOAuth2Authentication(org.springframework.security.oauth2.provider.ClientDetails client, org.springframework.security.oauth2.provider.TokenRequest tokenRequest)
     

    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

    • GigyaCustomTokenGranter

      protected GigyaCustomTokenGranter(org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices, org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService, org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory, GigyaLoginService gigyaLoginService, GigyaLoginFacade gigyaLoginFacade, de.hybris.platform.site.BaseSiteService baseSiteService, org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
  • 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.token.AbstractTokenGranter