TigerTokenAuthProvider
Home > @gooddata/sdk-backend-tiger > TigerTokenAuthProvider
TigerTokenAuthProvider class
This implementation of authentication provider uses an API Token as bearer of authentication.
Signature:
export declare class TigerTokenAuthProvider extends TigerAuthProviderBase
Extends: TigerAuthProviderBase
Remarks
You can provide token at construction time and it will be passed on all calls to Tiger APIs
This is a go-to authentication provider for command-line applications. While nothing stops you from using this provider in UI applications, keep in mind that this is discouraged due to security holes it leads to; having the token hardcoded in a UI application means anyone can find it and use it for themselves.
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(apiToken, notAuthenticatedHandler) | Constructs a new instance of the TigerTokenAuthProvider class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
onNotAuthenticated | (context: IAuthenticationContext, error: NotAuthenticated) => void |
Methods
Method | Modifiers | Description |
---|---|---|
authenticate(context) | ||
initializeClient(client) |