Browser trusted identity propagation credentials
This authentication type allows you to fetch a new JSON web token (JWT) from an external identity provider and authenticate with Athena. You can use this plugin, to enable support for corporate identities via trusted identity propagation. For more information on how to use trusted identity propagation with drivers, see Use Trusted identity propagation with Amazon Athena drivers. You can also configure and deploy resources using CloudFormation.
With trusted identity propagation, identity context is added to an IAM role to identify the user requesting access to Amazon resources. For information on enabling and using trusted identity propagation, see What is trusted identity propagation?.
Authentication type
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| AuthenticationType | Required | IAM Credentials |
AuthenticationType=BrowserOidcTip; |
IDP well known configuration URL
The driver uses this HTTPS URL to retrieve JSON containing authorization_endpoint and token_endpoint. Both endpoint values must use HTTPS.
For troubleshooting: If you receive connection errors, verify that this URL is accessible from your network and returns valid OpenID Connect configuration JSON. The URL must be reachable by the client where the driver is installed and should be provided by your identity provider administrator.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| IdpWellKnownConfigurationUrl | Required | none |
IdpWellKnownConfigurationUrl=https://<your-domain>/.well-known/openid-configuration; |
Client Identifier
The client identifier issued to the application by the OpenID Connect provider.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| client_id | Required | none |
client_id=00001111-aaaa-2222-bbbb-3333cccc4444; |
Workgroup ARN
The Amazon Resource Name (ARN) of the Amazon Athena workgroup that contains the trusted identity propagation configuration tags. For more information about workgroups, see WorkGroup.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| WorkGroupArn | Required | none |
WorkGroupArn=arn:aws:athena:us-west-2:111122223333:workgroup/primary; |
JWT application role ARN
The ARN of the role that will be assumed in the JWT exchange. This role is used for JWT exchange, getting IAM Identity Center customer managed application ARN through workgroup tags, and getting access role ARN. For more information about assuming roles, see AssumeRole.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| ApplicationRoleArn | Required | none |
ApplicationRoleArn=arn:aws:iam::111122223333:role/applicationRole; |
Role session name
A descriptive name passed to the Amazon STS RoleSessionName request parameter. Use a value that meets the Amazon STS requirements for the role session name.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| role_session_name | Required | none |
role_session_name=familiarname; |
Client secret
When client_secret is configured, the driver includes it in authorization-code and refresh-token requests to the identity provider's token endpoint.
In the connection string example, replace the placeholder with the value for your connection.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| client_secret | Optional | none |
client_secret= |
Scope
The scopes sent in the identity-provider authorization request. The default is openid email offline_access. Set a space-separated value appropriate for your identity-provider application.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| Scope | Optional | openid email offline_access |
Scope=openid email; |
Session duration
The duration, in seconds, of the role session. For more information, see AssumeRoleWithWebIdentity.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| duration | Optional | 3600 |
duration=900; |
JWT access role ARN
The ARN of the role that the driver assumes through Amazon STS with Identity Center identity context to obtain credentials for Athena calls.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| AccessRoleArn | Optional | none |
AccessRoleArn=arn:aws:iam::111122223333:role/accessRole; |
IAM Identity Center customer managed application ARN
The ARN of IAM Identity Center customer managed IDC application. For more information about Customer
Managed Applications, see customer managed
applications. Replace customer-idc-application-arn with your application ARN.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| CustomerIdcApplicationArn | Optional | none |
CustomerIdcApplicationArn= |
listen_port
The local callback port defaults to 7890. Register the redirect URI http://localhost:7890/athena with your identity provider, or use the configured port in that URI.
Identity provider response timeout
The timeout in seconds to wait for the OAuth 2.0 callback response.
| Connection string name | Parameter type | Default value | Connection string example |
|---|---|---|---|
| IdpResponseTimeout | Optional | 120 |
IdpResponseTimeout=140; |
JwtTipFileCache
Set JwtTipFileCache=1 to reuse cached authentication tokens between connections. The default is 0.