Home Manual Reference Source
public class | source

ImplicitFlowPopup

Extends:

OAuthImplicitFlow → ImplicitFlowPopup

Implicit OAuth flow using a pop-up.

Static Member Summary

Static Public Members
public static get

Popup window name

Constructor Summary

Public Constructor
public

constructor(clientId: String, callbackUrl: String, scopes: Array<String>, useState: Boolean, windowOptions: String)

Implicit pop-up authentication flow

Member Summary

Public Members
public

Method Summary

Public Methods
public

Inherited Summary

From class OAuth
public get

If the current instance has a valid token

public
public

host: *

public

path: *

public

scopes: *

public

token: *

public abstract

Authenticate

public

forget()

Forget the current session Empty the session token store and forget the api token

public

importToken(token: String, type: String, expires: Date | Number, scopes: Array<string>)

Manually import OAuthToken, usefull for debugging

public

async logout()

Invalidates the session token

From class ImplicitFlow
public
public
public

token: *

public
public
protected

Test if the anchor contains an OAuth error

protected

Test if the anchor contains an OAuth response

protected

Builds the url for redirection

protected

Remove OAuth related anchor parameters

protected

Builds an object containing all the anchor parameters

protected

Get and return the error in the anchor

protected

Fetch OAuth anchor params

Static Public Members

public static get popupWindowName: String: string source

Popup window name

Return:

String

window.name of the created pop-up

Public Constructors

public constructor(clientId: String, callbackUrl: String, scopes: Array<String>, useState: Boolean, windowOptions: String) source

Implicit pop-up authentication flow

Override:

ImplicitFlow#constructor

Params:

NameTypeAttributeDescription
clientId String

OAuth client id

callbackUrl String

callbackUrl for obtaining the token. This should be a page with this script on it. If left empty the current url will be used.

scopes Array<String>

A list of required scopes

useState Boolean

use state verification

windowOptions String

optional window options for the pop-up window

Public Members

public windowOptions: * source

Public Methods

public authenticate(): * source

Authenticate

Override:

ImplicitFlow#authenticate

Return:

*