OAuth
Direct Subclass:
Indirect Subclass:
OAuth base class
Constructor Summary
Public Constructor | ||
public |
constructor(clientId: String, scopes: Array<String>) |
Member Summary
Public Members | ||
public get |
authenticated: Boolean: * If the current instance has a valid token |
|
public |
clientId: * |
|
public |
host: * |
|
public |
path: * |
|
public |
scopes: * |
|
public |
token: * |
Method Summary
Public Methods | ||
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 Members
public clientId: * source
public host: * source
public path: * source
public scopes: * source
public token: * source
Public Methods
public forget() source
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>) source
Manually import OAuthToken, usefull for debugging
public logout(): CancelablePromise source
Invalidates the session token
Throw:
If de-authentication fails |
|
If the api returns errors |