Hierarchy

  • Auth

Constructors

Methods

  • Description

    allow users to browse your catalog without signing in - must have anonymous template user set in dashboard

    Parameters

    • clientID: string

      of the application the user is logging into

    • Optional scope: ApiRole[]

      roles being requested - space delimited string or array

    • Optional customRoles: string[]

      optional custom roles being requested - string array

    • requestOptions: {
          anonuserid?: string;
          cancelToken?: CancelToken;
          requestType?: string;
      } = {}
      • Optional anonuserid?: string

        Provide an externally generated id to track this user session, used specifically for the tracking events feature for integrating with Send and Discover

      • Optional cancelToken?: CancelToken

        Provide an axios cancelToken that can be used to cancel the request.

      • Optional requestType?: string

        Provide a value that can be used to identify the type of request. Useful for error logs.

    Returns Promise<RequiredObjectDeep<AccessToken>>

  • Description

    this workflow is best suited for a backend system

    Parameters

    • clientSecret: string

      of the application

    • clientID: string

      of the application the user is logging into

    • Optional scope: ApiRole[]

      roles being requested - space delimited string or array

    • Optional customRoles: string[]

      optional custom roles being requested - string array

    • requestOptions: {
          cancelToken?: CancelToken;
          requestType?: string;
      } = {}
      • Optional cancelToken?: CancelToken

        Provide an axios cancelToken that can be used to cancel the request.

      • Optional requestType?: string

        Provide a value that can be used to identify the type of request. Useful for error logs.

    Returns Promise<RequiredObjectDeep<AccessToken>>

  • Description

    similar to login except client secret is also required, adding another level of security

    Parameters

    • clientSecret: string

      of the application

    • username: string

      of the user logging in

    • password: string

      of the user logging in

    • clientID: string

      of the application the user is logging into

    • Optional scope: ApiRole[]

      roles being requested - space delimited string or array

    • Optional customRoles: string[]

      optional custom roles being requested - string array

    • requestOptions: {
          cancelToken?: CancelToken;
          requestType?: string;
      } = {}
      • Optional cancelToken?: CancelToken

        Provide an axios cancelToken that can be used to cancel the request.

      • Optional requestType?: string

        Provide a value that can be used to identify the type of request. Useful for error logs.

    Returns Promise<RequiredObjectDeep<AccessToken>>

  • Description

    this workflow is most appropriate for client apps where user is a human, ie a registered user

    Parameters

    • username: string

      of the user logging in

    • password: string

      of the user logging in

    • clientID: string
    • Optional scope: ApiRole[]

      optional roles being requested, if omitted will return all assigned roles

    • Optional customRoles: string[]

      optional custom roles being requested - string array

    • requestOptions: {
          cancelToken?: CancelToken;
          requestType?: string;
      } = {}
      • Optional cancelToken?: CancelToken

        Provide an axios cancelToken that can be used to cancel the request.

      • Optional requestType?: string

        Provide a value that can be used to identify the type of request. Useful for error logs.

    Returns Promise<RequiredObjectDeep<AccessToken>>

  • Description

    extend your users' session by getting a new access token with a refresh token. refresh tokens must be enabled in the dashboard

    Parameters

    • refreshToken: string

      of the application

    • clientID: string

      of the application the user is logging into

    • requestOptions: {
          cancelToken?: CancelToken;
          requestType?: string;
      } = {}
      • Optional cancelToken?: CancelToken

        Provide an axios cancelToken that can be used to cancel the request.

      • Optional requestType?: string

        Provide a value that can be used to identify the type of request. Useful for error logs.

    Returns Promise<RequiredObjectDeep<AccessToken>>

Generated using TypeDoc