

# AD FS credentials

The `ADFS` provider obtains a SAML assertion using form-based authentication or Windows Integrated Authentication, and requests temporary credentials from Amazon STS or, when `LakeFormationEnabled` is true, Lake Formation.

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

## Credentials provider
<a name="jdbc-v4-driver-adfs-credentials-credentials-provider"></a>

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



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

## User
<a name="jdbc-v4-driver-adfs-credentials-user"></a>

The user name used for AD FS form-based authentication.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| User | UID (deprecated) | Required for form-based authentication. Optional for Windows Integrated Authentication. | none | 

## Password
<a name="jdbc-v4-driver-adfs-credentials-password"></a>

The password for the AD FS user.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| Password | PWD (deprecated) | Required for form-based authentication. Optional for Windows Integrated Authentication. | none | 

## ADFS host name
<a name="jdbc-v4-driver-adfs-credentials-adfshostname"></a>

The address for your AD FS server.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| IdpHostName | OktaHostName, PingHostName, AdfsHostName, IdP\_Host | Required | none | 

## ADFS port number
<a name="jdbc-v4-driver-adfs-credentials-adfsportnumber"></a>

The port number to use to connect to your AD FS server.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| IdpPortNumber | PingPortNumber, AdfsPortNumber, IdP\_Port | Required | none | 

## ADFS relying party
<a name="jdbc-v4-driver-adfs-credentials-adfsrelyingparty"></a>

The AD FS relying party identifier passed as `loginToRp` in the authentication request. The default is `urn:amazon:webservices`.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| AdfsRelyingParty | LoginToRP | Optional | urn:amazon:webservices | 

## ADFS WIA enabled
<a name="jdbc-v4-driver-adfs-credentials-adfswiaenabled"></a>

Boolean. Use this parameter to enable Windows Integrated Authentication (WIA) with AD FS.



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

## Preferred role
<a name="jdbc-v4-driver-adfs-credentials-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-adfs-credentials-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-adfs-credentials-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 | 