Constructor Summary
Public Constructor | ||
public |
Implicit authentication flow |
Member Summary
Public Members | ||
public |
callbackUrl: * |
|
public |
|
|
public |
token: * |
|
public |
useState: * |
Method Summary
Public Methods | ||
public |
authenticate(): * |
Protected Methods | ||
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 |
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 |
Public Constructors
public constructor(clientId: String, callbackUrl: String, scopes: Array<String>, useState: Boolean) source
Implicit authentication flow
Override:
OAuth#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 |
Public Methods
Protected Methods
protected _anchorContainsOAuthResponse(): Boolean source
Test if the anchor contains an OAuth response
protected _getAnchorParams(query: String): Object<String, String> source
Builds an object containing all the anchor parameters
Params:
Name | Type | Attribute | Description |
query | String | Url hash |