Class DeleteAuthCode
java.lang.Object
net.lightapi.portal.command.AbstractCommandHandler
net.lightapi.portal.oauth.command.handler.DeleteAuthCode
- All Implemented Interfaces:
com.networknt.rpc.HybridHandler
public class DeleteAuthCode
extends net.lightapi.portal.command.AbstractCommandHandler
This endpoint will be called by oauth-kafka and portal UI to remove compromised authorization code by admin.
In both cases, an authorization code token will be used to perform the action. From the oauth-kafka, this is
called after the jwt token is created, and we just need to pass that token to this endpoint. From the portal
UI, the user must be an admin to call this endpoint and the jwt token is passed in the header.
- Author:
- Steve Hu
-
Field Summary
Fields inherited from class net.lightapi.portal.command.AbstractCommandHandler
config, HOST_ID, INCORRECT_TOKEN_TYPE, SEND_MESSAGE_EXCEPTION, USER_IDFields inherited from interface com.networknt.rpc.HybridHandler
ERROR_NOT_DEFINED, logger, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.lightapi.portal.command.AbstractCommandHandler
additionalAction, buildCloudEvent, customizeOutput, enrichInput, handle, validateInput, validateTokenTypeMethods 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
-
Constructor Details
-
DeleteAuthCode
public DeleteAuthCode()
-
-
Method Details
-
getCloudEventType
- Specified by:
getCloudEventTypein classnet.lightapi.portal.command.AbstractCommandHandler
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classnet.lightapi.portal.command.AbstractCommandHandler
-