TODO

Example

TODO

Hierarchy

Constructors

Methods

  • Overrides the default oauth behavior to hand back the redirect to your callback rather than do the redirect for you; handy when custom behavior is desired, or when you simply wish to use the endpoint that is calling this as a proxy

    Parameters

    • authorizationCodeCallback: ((url) => void)
        • (url): void
        • Parameters

          • url: string

          Returns void

    Returns Bluestep.Net.OAuth.Flows.Code.RelateData.Flow

    Example

    // this is the default behavior if this is not called
    B.net.oauth.flows.code.relateData.flow()
    .provider(provider)
    .addToState("action", action)
    .addToState("provider", provider)
    .authorizationCodeCallback(
    // THIS IS THE `DEFAULT BEHAVIOR`
    url => B.net.response.redirect(url)
    )
    .authorize();

    Example

    // this is a potential other implementation
    B.net.oauth.flows.code.relateData.flow()
    .provider(provider)
    .addToState("action", action)
    .addToState("provider", provider)
    .authorizationCodeCallback(
    url => {
    formEntry.fields.savedAuthUrl.val(url);
    B.net.response.out(url);
    }
    )
    .authorize();
  • Start the authorization process

    Returns void

Generated using TypeDoc