redirectToTigerAuthentication()
Home > @gooddata/sdk-backend-tiger > redirectToTigerAuthentication
redirectToTigerAuthentication() function
Given authentication context and the authentication error, this implementation of NotAuthenticatedHandler
will redirect current window to location where Tiger authentication flow will start.
Signature:
export declare function redirectToTigerAuthentication(context: IAuthenticationContext, error: NotAuthenticated): void;
Parameters
Parameter | Type | Description |
---|---|---|
context | IAuthenticationContext | authentication context |
error | NotAuthenticated | not authenticated error, must contain the authenticationFlow information otherwise the handler just logs an error and does nothing |
Returns:
void
Remarks
The location will be setup with correct return address so that when the flow finishes successfully, the browser window will be redirected from whence it came.
See also createTigerAuthenticationUrl(); this function is used to construct the URL. You may use it when build your own handler.