Class CreateProvider
java.lang.Object
net.lightapi.portal.command.AbstractCommandHandler
net.lightapi.portal.oauth.command.handler.CreateProvider
- All Implemented Interfaces:
com.networknt.rpc.HybridHandler
public class CreateProvider
extends net.lightapi.portal.command.AbstractCommandHandler
Create an OAuth 2.0 provider in a cluster and it is called from the light-view by admin. A authorization code token is
needed to access this endpoint.
- 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, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenrichInput(io.undertow.server.HttpServerExchange exchange, Map<String, Object> map) protected Stringprotected org.slf4j.LoggerMethods inherited from class net.lightapi.portal.command.AbstractCommandHandler
additionalAction, buildCloudEvent, customizeOutput, 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
-
CreateProvider
public CreateProvider()
-
-
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
-
enrichInput
protected com.networknt.monad.Result<Map<String,Object>> enrichInput(io.undertow.server.HttpServerExchange exchange, Map<String, Object> map) - Overrides:
enrichInputin classnet.lightapi.portal.command.AbstractCommandHandler
-