Object -
oauth2
:
OutboundOAuth2Provider
Represents outbound OAuth2 provider.
Constructor
__init
(GrantTypeConfig? oauth2ProviderConfig)
- oauth2ProviderConfig GrantTypeConfig? ()
-
Outbound OAuth2 authentication configurations
Methods
generateToken
Generate token for OAuth2 authentication.
inspect
Inspect the incoming data and generate the token for OAuth2 authentication.
Fields
- oauth2ProviderConfig GrantTypeConfig?
-
Outbound OAuth2 provider configurations
- oauth2CacheEntry OutboundOAuth2CacheEntry
-
Outbound OAuth2 cache entry
Generate token for OAuth2 authentication.
-
Return Type
(string | Error) Generated token or
auth:Error
if an error occurred
Inspect the incoming data and generate the token for OAuth2 authentication.
Parameters
- data map
-
Map of data which is extracted from the HTTP response
-
Return Type
(string | Error | ()) String token, or
auth:Error
occurred when generating token or()
if nothing to be returned