Interface AuthorizationService

All Known Implementing Classes:
DefaultAuthorizationService

public interface AuthorizationService
Accessing oauth2 tokens and other destination attributes
  • Method Details

    • getAuthorizationDataForAdmin

      AuthorizationData getAuthorizationDataForAdmin()
      Get data used for initiating a CPQ session with admin scope. This is derived from the destination maintained for CpqClient attached to the current base site
      Returns:
      Attributes for initiating a CPQ session, including an oAuth2 token
    • getAuthorizationDataForClient

      AuthorizationData getAuthorizationDataForClient(String ownerId)
      Get data used for initiating a CPQ session with a limited scope for a given owner id. This is derived from the destination maintained for CpqClient attached to the current base site
      Parameters:
      ownerId - owner id of the client
      Returns:
      Attributes for initiating a CPQ session, including an oAuth2 token
    • isAuthorizationDataForClientInCache

      default boolean isAuthorizationDataForClientInCache(String ownerId)
      Verifies if the client authorization data already cached for the given owner
      Parameters:
      ownerId - owner id of the client
      Returns:
      true if client authorization data already cached for the given owner