> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# createTigerAuthenticationUrl()

- Package: [@gooddata/sdk-backend-tiger](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-tiger/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-backend-tiger/src/auth.ts

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:**

```typescript
export declare function createTigerAuthenticationUrl(backend: IAnalyticalBackend, authenticationFlow: AuthenticationFlow, location: Location, additionalParams?: {
    externalProviderId?: string;
}): string;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| backend | [IAnalyticalBackend](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.ianalyticalbackend/index.md) | an instance of analytical backend |
| authenticationFlow | [AuthenticationFlow](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.authenticationflow/index.md) | details about the tiger authentication flow |
| location | Location | current location |
| additionalParams | { externalProviderId?: string; } | _(Optional)_ additional params used in the authentication URL |

**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
