Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AmazonCognitoAuth

Simplified factory to create an for Amazon Cognito.

Hierarchy

Index

Methods

Methods

Static create

  • create(vertx: Vertx, region: string, clientId: string, clientSecret: string, guid: string): OAuth2Auth
  • create(vertx: Vertx, region: string, clientId: string, clientSecret: string, userPoolId: string, httpClientOptions: HttpClientOptions): OAuth2Auth
  • Create a OAuth2Auth provider for Amazon Cognito

    Parameters

    • vertx: Vertx
    • region: string
    • clientId: string
    • clientSecret: string
    • guid: string

    Returns OAuth2Auth

  • Create a OAuth2Auth provider for Amazon Cognito

    Parameters

    • vertx: Vertx
    • region: string
    • clientId: string
    • clientSecret: string
    • userPoolId: string
    • httpClientOptions: HttpClientOptions

    Returns OAuth2Auth

Static discover

  • Create a OAuth2Auth provider for OpenID Connect Discovery. The discovery will use the default site in the configuration options and attempt to load the well known descriptor. If a site is provided (for example when running on a custom instance) that site will be used to do the lookup.

    If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded into the OAuth provider so tokens can be decoded.

    Parameters

    Returns PromiseLike<OAuth2Auth>

  • Create a OAuth2Auth provider for OpenID Connect Discovery. The discovery will use the default site in the configuration options and attempt to load the well known descriptor. If a site is provided (for example when running on a custom instance) that site will be used to do the lookup.

    If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded into the OAuth provider so tokens can be decoded.

    Parameters

    Returns void

Generated using TypeDoc