Skip to content

Classes ​

TokenHandler

Constructor.

Constants ​

grantTypes

Grant types.

TokenHandler ​

Constructor.

Kind: global class

tokenHandler.handle() ​

Token Handler.

Kind: instance method of TokenHandler

tokenHandler.getClient() ​

Get the client from the model.

Kind: instance method of TokenHandler

tokenHandler.getClientCredentials() ​

Get client credentials.

The client credentials may be sent using the HTTP Basic authentication scheme or, alternatively, the client_id and client_secret can be embedded in the body.

Kind: instance method of TokenHandler
See: https://tools.ietf.org/html/rfc6749#section-2.3.1

tokenHandler.handleGrantType() ​

Handle grant type.

Kind: instance method of TokenHandler

tokenHandler.getAccessTokenLifetime() ​

Get access token lifetime.

Kind: instance method of TokenHandler

tokenHandler.getRefreshTokenLifetime() ​

Get refresh token lifetime.

Kind: instance method of TokenHandler

tokenHandler.getTokenType() ​

Get token type.

Kind: instance method of TokenHandler

tokenHandler.updateSuccessResponse() ​

Update response when a token is generated.

Kind: instance method of TokenHandler

tokenHandler.updateErrorResponse() ​

Update response when an error is thrown.

Kind: instance method of TokenHandler

tokenHandler.isClientAuthenticationRequired() ​

Given a grant type, check if client authentication is required

Kind: instance method of TokenHandler

grantTypes ​

Grant types.

Kind: global constant