createTigerAuthenticationUrl()
Home > @gooddata/sdk-backend-tiger > createTigerAuthenticationUrl
createTigerAuthenticationUrl() function
Given tiger backend, authentication flow details and current location, this function creates URL where the browser should redirect to start authentication flow with correct return address.
Signature:
export declare function createTigerAuthenticationUrl(backend: IAnalyticalBackend, authenticationFlow: AuthenticationFlow, location: Location): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| backend | IAnalyticalBackend | an instance of analytical backend |
| authenticationFlow | AuthenticationFlow | details about the tiger authentication flow |
| location | Location | current location |
Returns:
string
Remarks
The current location is essential to determine whether the return redirect should contain absolute or related return path:
When running on same origin, then use relative path
When running on different origin, then use absolute path