TODO

Example

TODO

Hierarchy

Constructors

Methods

  • By default the state will include a csrf value that is stored in the as json object as well as the session in order to prevent cross site request forgery. You may use this method to add additional members to the state json object.

    Parameters

    • key: string
    • value: any

    Returns OpenIdFlow

  • Start the authorization process

    Returns void

  • This callback gets called after authorization is successful. Required for all OAuth flows.

    Parameters

    • credFnc: ((creditial) => void)

    Returns OpenIdFlow

  • This callback gets called for errors. The default actions is:

    throw new OAuthException(errorMssg);`
    

    Parameters

    Returns OpenIdFlow

  • The OAuth User to use. If userRelateDataStore is false the credentials will be stored in the session.

    Parameters

    • userId: string
    • userRelateDataStore: boolean

    Returns OpenIdFlow

Generated using TypeDoc