new OAuth2AuthHandler()
An auth handler that provides OAuth2 Authentication support. This handler is suitable for AuthCode flows.
Methods
addAuthorities(authorities) → {AuthHandler}
Add a set of required authorities for this auth handler
Parameters:
Name | Type | Description |
---|---|---|
authorities |
Array.<string> | the set of authorities |
Returns:
a reference to this, so the API can be used fluently
- Type
- AuthHandler
addAuthority(authority) → {AuthHandler}
Add a required authority for this auth handler
Parameters:
Name | Type | Description |
---|---|---|
authority |
string | the authority |
Returns:
a reference to this, so the API can be used fluently
- Type
- AuthHandler
extraParams(extraParams) → {OAuth2AuthHandler}
Extra parameters needed to be passed while requesting a token.
Parameters:
Name | Type | Description |
---|---|---|
extraParams |
Object | extra optional parameters. |
Returns:
self
- Type
- OAuth2AuthHandler
handle(arg0)
Parameters:
Name | Type | Description |
---|---|---|
arg0 |
RoutingContext |
setupCallback(route) → {OAuth2AuthHandler}
add the callback handler to a given route.
Parameters:
Name | Type | Description |
---|---|---|
route |
Route | a given route e.g.: `/callback` |
Returns:
self
- Type
- OAuth2AuthHandler