Class CreateAuthCode
java.lang.Object
net.lightapi.portal.command.AbstractCommandHandler
net.lightapi.portal.oauth.command.handler.CreateAuthCode
- All Implemented Interfaces:
com.networknt.rpc.HybridHandler
public class CreateAuthCode
extends net.lightapi.portal.command.AbstractCommandHandler
Create am authorization code from oauth-kafka code service. A client credentials token is needed to access
this endpoint and the userId is passed from the payload. When this request is called, there is no user token
available, so only client credentials token is used to authorize the request. The userId is passed in the
data section.
- Author:
- Steve Hu
-
Field Summary
FieldsFields inherited from class net.lightapi.portal.command.AbstractCommandHandler
config, dbProvider, HOST_ID, INCORRECT_TOKEN_TYPE, SEND_MESSAGE_EXCEPTION, USER_IDFields inherited from interface com.networknt.rpc.HybridHandler
ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.LoggervalidateTokenType(String userId, Map<String, Object> map) Methods inherited from class net.lightapi.portal.command.AbstractCommandHandler
additionalAction, buildCloudEvent, customizeOutput, enrichInput, handle, validateInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.rpc.HybridHandler
getStatus, getStatus, validate
-
Field Details
-
logger
public static final org.slf4j.Logger logger
-
-
Constructor Details
-
CreateAuthCode
public CreateAuthCode()
-
-
Method Details
-
getCloudEventType
- Specified by:
getCloudEventTypein classnet.lightapi.portal.command.AbstractCommandHandler
-
getCloudEventAggregateType
- Specified by:
getCloudEventAggregateTypein classnet.lightapi.portal.command.AbstractCommandHandler
-
getCloudEventAggregateId
- Specified by:
getCloudEventAggregateIdin classnet.lightapi.portal.command.AbstractCommandHandler
-
getLogger
public org.slf4j.Logger getLogger()- Specified by:
getLoggerin classnet.lightapi.portal.command.AbstractCommandHandler
-
validateTokenType
protected com.networknt.monad.Result<Map<String,Object>> validateTokenType(String userId, Map<String, Object> map) - Overrides:
validateTokenTypein classnet.lightapi.portal.command.AbstractCommandHandler
-