import ImplicitFlowPopup from '@mapcreator/api/src/oauth/ImplicitFlowPopup.js'
ImplicitFlowPopup
Extends:
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 |
authenticate(): * |
Inherited Summary
From class OAuth | ||
public get |
authenticated: Boolean: * If the current instance has a valid token |
|
public |
clientId: * |
|
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 |
Manually import OAuthToken, usefull for debugging |
|
public |
Invalidates the session token |
From class ImplicitFlow | ||
public |
callbackUrl: * |
|
public |
|
|
public |
token: * |
|
public |
useState: * |
|
public |
authenticate(): * |
|
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 |
_getAnchorParams(query: String): Object<String, String> 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 Constructors
public constructor(clientId: String, callbackUrl: String, scopes: Array<String>, useState: Boolean, windowOptions: String) source
Implicit pop-up authentication flow
Override:
ImplicitFlow#constructorParams:
Name | Type | Attribute | Description |
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 |