Class GetClientRegistrationInfoTokenCmd
java.lang.Object
com.flowable.platform.engine.impl.cmd.GetClientRegistrationInfoTokenCmd
- All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<String>
public class GetClientRegistrationInfoTokenCmd
extends Object
implements org.flowable.common.engine.impl.interceptor.Command<String>
Retrieves an access token from a
ClientRegistrationInfo's token endpoint.
The OAuth2 flow is determined by the registration's grantType.- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddProtocolFormParameters(org.flowable.http.common.api.HttpRequest request, ClientRegistrationInfoEntity registration, PlatformEngineConfiguration engineConfiguration) protected StringcreateErrorMessage(String errorCode, String errorDescription) execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected StringgetBadRequestErrorMessageFromHeaders(org.flowable.http.common.api.HttpHeaders httpHeaders) protected StringgetBadRequestResponseErrorMessage(org.flowable.http.common.api.HttpResponse response, PlatformEngineConfiguration engineConfiguration) protected StringgetErrorMessage(HttpStatus status, org.flowable.http.common.api.HttpResponse response, PlatformEngineConfiguration engineConfiguration) protected tools.jackson.databind.JsonNodereadResponseBody(org.flowable.http.common.api.HttpResponse response, PlatformEngineConfiguration engineConfiguration) protected StringresolveAssertion(PlatformEngineConfiguration engineConfiguration)
-
Field Details
-
GRANT_TYPE_CLIENT_CREDENTIALS_VALUE
- See Also:
-
GRANT_TYPE_JWT_BEARER_VALUE
- See Also:
-
GRANT_TYPE_TOKEN_EXCHANGE_VALUE
- See Also:
-
registrationKey
-
tenantId
-
-
Constructor Details
-
GetClientRegistrationInfoTokenCmd
-
-
Method Details
-
execute
-
addProtocolFormParameters
protected void addProtocolFormParameters(org.flowable.http.common.api.HttpRequest request, ClientRegistrationInfoEntity registration, PlatformEngineConfiguration engineConfiguration) -
resolveAssertion
-
readResponseBody
protected tools.jackson.databind.JsonNode readResponseBody(org.flowable.http.common.api.HttpResponse response, PlatformEngineConfiguration engineConfiguration) -
getErrorMessage
protected String getErrorMessage(HttpStatus status, org.flowable.http.common.api.HttpResponse response, PlatformEngineConfiguration engineConfiguration) -
getBadRequestResponseErrorMessage
protected String getBadRequestResponseErrorMessage(org.flowable.http.common.api.HttpResponse response, PlatformEngineConfiguration engineConfiguration) -
getBadRequestErrorMessageFromHeaders
protected String getBadRequestErrorMessageFromHeaders(org.flowable.http.common.api.HttpHeaders httpHeaders) -
createErrorMessage
-