Class Oauth2TokenPostHandler
- java.lang.Object
-
- com.networknt.oauth.cache.AuditInfoHandler
-
- com.networknt.oauth.token.handler.TokenAuditHandler
-
- com.networknt.oauth.token.handler.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_TYPE_EXTERNALstatic StringCLIENT_TYPE_TRUSTEDstatic intTEN_YEAR_IN_SECOND
-
Constructor Summary
Constructors Constructor Description Oauth2TokenPostHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange exchange)-
Methods inherited from class com.networknt.oauth.token.handler.TokenAuditHandler
processAudit
-
Methods inherited from class com.networknt.oauth.cache.AuditInfoHandler
clean, saveAudit
-
-
-
-
Field Detail
-
CLIENT_TYPE_TRUSTED
public static final String CLIENT_TYPE_TRUSTED
- See Also:
- Constant Field Values
-
CLIENT_TYPE_EXTERNAL
public static final String CLIENT_TYPE_EXTERNAL
- See Also:
- Constant Field Values
-
TEN_YEAR_IN_SECOND
public static final int TEN_YEAR_IN_SECOND
- See Also:
- Constant Field Values
-
-