

# Browser Azure AD credentials

The `BrowserAzureAD` provider obtains a SAML assertion through the browser Azure AD authentication flow. It requires the Azure AD tenant and client identifiers; it does not require a user name, password, or client secret in the connection parameters.

Set the `Region` connection parameter explicitly when using `BrowserAzureAD`. For details, see [Region](jdbc-v4-driver-basic-connection-parameters.md#jdbc-v4-driver-region).

## Credentials provider
<a name="jdbc-v4-driver-browser-azure-ad-credentials-provider"></a>

The credentials provider that will be used to authenticate requests to Amazon. Set the value of this parameter to `BrowserAzureAD`.



| Parameter name | Alias | Parameter type | Default value | Value to use | 
| --- | --- | --- | --- | --- | 
| CredentialsProvider | AWSCredentialsProviderClass (deprecated) | Required | none | BrowserAzureAD | 

## Azure AD tenant ID
<a name="jdbc-v4-driver-browser-azure-ad-azure-ad-tenant-id"></a>

The tenant ID of your Azure AD application



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| AzureAdTenantId | tenant\_id (deprecated) | Required | none | 

## Azure AD client ID
<a name="jdbc-v4-driver-browser-azure-ad-azure-ad-client-id"></a>

The client ID of your Azure AD application



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| AzureAdClientId | client\_id (deprecated) | Required | none | 

## Identity provider response timeout
<a name="jdbc-v4-driver-identity-provider-response-timeout"></a>

The duration, in seconds, before the driver stops waiting for the SAML response from Azure AD.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| IdpResponseTimeout | idp\_response\_timeout (deprecated) | Optional | 120 | 

## Preferred role
<a name="jdbc-v4-driver-browser-azure-ad-preferred-role"></a>

The Amazon Resource Name (ARN) of the role to assume. For information about ARN roles, see [AssumeRole](https://docs.amazonaws.cn/STS/latest/APIReference/API_AssumeRole.html) in the *Amazon Security Token Service API Reference*.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| PreferredRole | preferred\_role (deprecated) | Optional | none | 

## Role session duration
<a name="jdbc-v4-driver-browser-azure-ad-role-session-duration"></a>

The duration, in seconds, of the role session. For more information, see [AssumeRole](https://docs.amazonaws.cn/STS/latest/APIReference/API_AssumeRole.html) in the *Amazon Security Token Service API Reference*.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| RoleSessionDuration | Duration (deprecated) | Optional | Unset by the driver | 

## Lake Formation enabled
<a name="jdbc-v4-driver-browser-azure-ad-lake-formation-enabled"></a>

Specifies whether to use the [AssumeDecoratedRoleWithSAML](https://docs.amazonaws.cn/lake-formation/latest/APIReference/API_AssumeDecoratedRoleWithSAML.html) Lake Formation API action to retrieve temporary IAM credentials instead of the [AssumeRoleWithSAML](https://docs.amazonaws.cn/STS/latest/APIReference/API_AssumeRoleWithSAML.html) Amazon STS API action.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| LakeFormationEnabled | none | Optional | FALSE | 

## Enable token caching
<a name="jdbc-v4-driver-browser-azure-ad-enable-token-caching"></a>

When enabled, the driver reuses the SAML assertion from a matching cache entry if the current time plus 180 seconds is not later than the cache entry expiration. Otherwise, the driver starts the browser authentication flow.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| EnableTokenCaching | none | Optional | FALSE | 