Object - oauth2 : InboundOAuth2Provider

Represents inbound OAuth2 provider, which calls the introspection server and validate the received credentials.

Constructor

__init

(IntrospectionServerConfig config)

Methods

Fields

  • introspectionClient Client
  • Introspection client endpoint

  • tokenTypeHint string?
  • A hint about the type of the token submitted for introspection

authenticate

(string credential)

returns boolean | Error

Attempts to authenticate with credential.

Parameters

  • credential string
  • Credential to be authenticated

  • Return Type

    (boolean | Error)
  • true if authentication is successful, otherwise false or auth:Error if an error occurred