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

# IAuthenticationContext

- Package: [@gooddata/sdk-backend-spi](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-backend-spi/src/backend/index.ts
- Guides: [Renew the session without a redirect](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/renew-session-silently/index.md)

Describes context in which the authentication is done.

**Signature:**

```typescript
export interface IAuthenticationContext 
```

## Remarks

To cater for custom authentication schemes. the API client of the underlying backend IS exposed anonymously to the provider - the provider SHOULD use the provided API client to exercise any backend-specific authentication mechanisms.

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [backend](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iauthenticationcontext/index.md#iauthenticationcontextbackend) |  | [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 which triggered the authentication. |
| [client](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iauthenticationcontext/index.md#iauthenticationcontextclient) |  | any | API client used to communicate with the backend. |

## Property details

### IAuthenticationContext.backend

An instance of analytical backend which triggered the authentication.

**Signature:**

```typescript
backend: IAnalyticalBackend;
```

### IAuthenticationContext.client

API client used to communicate with the backend.

**Signature:**

```typescript
client: any;
```

#### Remarks

This can be used to perform any backend-specific, non-standard authentication.
