Class Oauth2TokenPostHandler

  • All Implemented Interfaces:
    com.networknt.handler.LightHttpHandler, io.undertow.server.HttpHandler

    public class Oauth2TokenPostHandler
    extends TokenAuditHandler
    implements com.networknt.handler.LightHttpHandler
    This handler will issue the token based on the information about the client and user. The content of the token will be depending on the grant type. Also, the format of the token is depending on the client type. For public client type, the token is by reference token, other client type will issue the JWT token directly. There is an endpoint in this service to dereference token once the request comes into the internal network. We also introduce a new client type called trusted and limited other grant types except authorization code and client credentials to be used.
    Author:
    Steve Hu
    • Constructor Detail

      • Oauth2TokenPostHandler

        public Oauth2TokenPostHandler()
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception