

# Okta credentials

The `Okta` provider obtains a SAML assertion from Okta and uses it to request temporary credentials from Amazon STS or, when `LakeFormationEnabled` is true, Lake Formation.

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

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

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



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

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

The user name used for Okta authentication.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| User | UID (deprecated) | Required | none | 

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

The password for the Okta user.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| Password | PWD (deprecated) | Required | none | 

## Okta host name
<a name="jdbc-v4-driver-okta-host-name"></a>

The host name used for requests to your Okta organization.



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

## Okta application ID
<a name="jdbc-v4-driver-okta-application-id"></a>

The application identifier used with `OktaAppName` when the driver constructs the Okta SAML assertion request URL.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| OktaAppId | App\_ID (deprecated) | Required | none | 

## Okta application name
<a name="jdbc-v4-driver-okta-application-name"></a>

The name of your Okta application.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| OktaAppName | App\_Name (deprecated) | Required | none | 

## Okta MFA type
<a name="jdbc-v4-driver-okta-mfa-type"></a>

If you have set up Okta to require multi-factor authentication (MFA), you need to specify the Okta MFA type and additional parameters depending on the second factor that you want to use.

Okta MFA type is the second authentication factor type (after the password) to use to authenticate with Okta. Supported second factors include push notifications delivered through the Okta Verify app and temporary one-time passwords (TOTPs) generated by Okta Verify, Google Authenticator, or sent through SMS. Individual organization security policies determine whether or not MFA is required for user login.



| Parameter name | Alias | Parameter type | Default value | Possible values | 
| --- | --- | --- | --- | --- | 
| OktaMfaType | okta\_mfa\_type (deprecated) | Required, if Okta is set up to require MFA | none | oktaverifywithpush, oktaverifywithtotp, googleauthenticator, smsauthentication | 

## Okta phone number
<a name="jdbc-v4-driver-okta-phone-number"></a>

The phone number supplied for the Okta `smsauthentication` MFA factor. This parameter is required when that factor is selected.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| OktaPhoneNumber | okta\_phone\_number (deprecated) | Required, if OktaMfaType is smsauthentication | none | 

## Okta MFA wait time
<a name="jdbc-v4-driver-okta-mfa-wait-time"></a>

The duration, in seconds, to wait for the user to acknowledge a push notification from Okta before the driver throws a timeout exception.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| OktaMfaWaitTime | okta\_mfa\_wait\_time (deprecated) | Optional | 60 | 

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