

# JWT Trusted identity propagation credentials provider

This authentication type allows you to use a JSON web token (JWT) obtained from an external identity provider as a connection parameter to authenticate with Athena. You can use this plugin, to enable support for corporate identities via trusted identity propagation.

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?](https://docs.amazonaws.cn/singlesignon/latest/userguide/trustedidentitypropagation.html).

## Authentication type
<a name="odbc-v4-driver-jwt-tip-authentication-type"></a>



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| AuthenticationType | Required | IAM Credentials | AuthenticationType=JWT\_TIP; | 

## JWT web identity token
<a name="odbc-v4-driver-jwt-tip-web-identity-token"></a>

The JWT obtained from your identity provider. The provider reuses its Identity Center token in memory. Disk reuse across connections and processes requires `JwtTipFileCache=1`; that option defaults to `0`.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| web\_identity\_token | Required | none | web\_identity\_token=eyJhbGc...<remainder of token>; | 

## Workgroup Arn
<a name="odbc-v4-driver-jwt-tip-workgroup-arn"></a>

The Amazon Resource Name (ARN) of the Amazon Athena workgroup. For more information about workgroups, see [WorkGroup](https://docs.amazonaws.cn/athena/latest/APIReference/API_WorkGroup.html).



| **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
<a name="odbc-v4-driver-jwt-tip-application-role-arn"></a>

The ARN of the role to assume. 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](https://docs.amazonaws.cn/STS/latest/APIReference/API_AssumeRole.html).



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| ApplicationRoleArn | Required | none | ApplicationRoleArn=arn:aws:iam::111122223333:role/applicationRole; | 

## Role session name
<a name="odbc-v4-driver-jwt-tip-role-session-name"></a>

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; | 

## Session duration
<a name="odbc-v4-driver-jwt-tip-session-duration"></a>

The duration, in seconds, of the role session. For more information about session duration, see [AssumeRole](https://docs.amazonaws.cn/STS/latest/APIReference/API_AssumeRole.html).



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| duration | Optional | 3600 | duration=900; | 

## JWT access role ARN
<a name="odbc-v4-driver-jwt-tip-access-role-arn"></a>

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
<a name="odbc-v4-driver-jwt-tip-customer-idc-application-arn"></a>

The ARN of IAM Identity Center customer managed IDC application. For more information about Customer Managed Applications, see [customer managed applications](https://docs.amazonaws.cn/singlesignon/latest/userguide/customermanagedapps.html). Replace {{customer-idc-application-arn}} with your application ARN.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| CustomerIdcApplicationArn | Optional | none | CustomerIdcApplicationArn={{customer-idc-application-arn}}; | 

## Enable file cache
<a name="odbc-v4-driver-jwt-tip-file-cache"></a>

Enables an Identity Center token cache on disk for reuse across connections and processes. The cache directory is `~/.athena-odbc` on Linux and macOS, and `%USERPROFILE%\.athena-odbc` on Windows.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| JwtTipFileCache | Optional | 0 | JwtTipFileCache=1; | 