Okta
Okta is a SAML-based authentication plugin that works with the Okta identity provider. For information about configuring federation for Okta and Amazon Athena, see Configure SSO for ODBC using the Okta plugin and Okta Identity Provider.
Authentication Type
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| AuthenticationType | Required | IAM Credentials |
AuthenticationType=Okta; |
User ID
Your Okta user name.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| UID | Required | none |
UID=jane.doe@org.com; |
Password
Your Okta user password.
In the connection string example, replace the placeholder with the value for your connection.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| PWD | Required | none |
PWD= |
Preferred role
The Amazon Resource Name (ARN) of the role to assume. For more information about ARN roles, see AssumeRole in the AWS Security Token Service API Reference.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| preferred_role | Optional | none |
preferred_role=arn:aws:iam::123456789012:role/MyAthenaRole; |
Session duration
The role session duration in seconds. When this parameter is unset, the driver omits DurationSeconds from the request. The selected service determines the resulting session duration.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| duration | Optional | Not set | duration=900; |
IdP host
The host name of your Okta organization, such as trial-1234567.okta.com. Specify the host without https://, because the driver adds that scheme.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| idp_host | Required | None |
idp_host=dev-99999999.okta.com; |
IdP port
This parameter is required by the Okta connection validator for compatibility. The Okta HTTP request URLs do not use its value.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| idp_port | Required | None |
idp_port=443; |
Okta app ID
The application identifier used in the Okta application URL. The driver appends this value to the path after app_name.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| app_id | Required | None |
app_id=0oa25kx8ze9A3example/alnexamplea0piaWa0g7; |
Okta app name
The name of the Okta application.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| app_name | Required | None |
app_name=amazon_aws_redshift; |
Okta wait time
The duration in seconds to wait for multifactor authentication. The default is 60; a configured value must be at least 10.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| okta_mfa_wait_time | Optional | 60 |
okta_mfa_wait_time=20; |
Okta MFA type
The MFA factor type. The driver implements Google Authenticator, SMS (Okta), Okta Verify with Push, and Okta Verify with TOTP factor flows.
| Connection string name | Parameter type | Default value | Possible values | Connection string example |
|---|---|---|---|---|
| okta_mfa_type | Optional |
None |
googleauthenticator, smsauthentication, oktaverifywithpush,
oktaverifywithtotp |
okta_mfa_type=oktaverifywithpush; |
Okta phone number
The phone number to use with AWS SMS authentication. This parameter is required only for multifactor enrollment. If your mobile number is already enrolled, or if AWS SMS authentication is not used by the security policy, you can ignore this field.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| okta_mfa_phone_number | Required for SMS MFA enrollment, optional otherwise | None |
okta_mfa_phone_number=19991234567; |
Enable Okta file cache
With okta_cache=1, the driver can reuse valid temporary credentials from its file cache. If the cache entry is missing or invalid, it runs the Okta authentication flow.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| okta_cache | Optional | 0 |
okta_cache=1; |