Interface AuthorizationService
- All Known Implementing Classes:
DefaultAuthorizationService
public interface AuthorizationService
Accessing oauth2 tokens and other destination attributes
-
Method Summary
Modifier and TypeMethodDescriptionGet data used for initiating a CPQ session with admin scope.getAuthorizationDataForClient(String ownerId) Get data used for initiating a CPQ session with a limited scope for a given owner id.default booleanVerifies if the client authorization data already cached for the given owner
-
Method Details
-
getAuthorizationDataForAdmin
AuthorizationData getAuthorizationDataForAdmin()Get data used for initiating a CPQ session with admin scope. This is derived from the destination maintained forCpqClientattached to the current base site- Returns:
- Attributes for initiating a CPQ session, including an oAuth2 token
-
getAuthorizationDataForClient
Get data used for initiating a CPQ session with a limited scope for a given owner id. This is derived from the destination maintained forCpqClientattached to the current base site- Parameters:
ownerId- owner id of the client- Returns:
- Attributes for initiating a CPQ session, including an oAuth2 token
-
isAuthorizationDataForClientInCache
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
-