Class GetClientById

java.lang.Object
net.lightapi.portal.oauth.query.handler.GetClientById
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class GetClientById extends Object implements com.networknt.rpc.HybridHandler
Get registered client detail by clientId. There are two consumers for this API. The light-portal UI and light-oauth2 for client authentication. The first case will have an authorization code token with a userId and the second is client credentials token without userId. Based on it, we will return the client secret to the light-oauth2 only.
Author:
Steve Hu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static net.lightapi.portal.db.PortalDbProvider
     

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.undertow.server.HttpServerExchange exchange, Object input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Field Details

    • dbProvider

      public static net.lightapi.portal.db.PortalDbProvider dbProvider
  • Constructor Details

    • GetClientById

      public GetClientById()
  • Method Details

    • handle

      public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
      Specified by:
      handle in interface com.networknt.rpc.HybridHandler