

# 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](using-trusted-identity-propagation.md). You can also [configure and deploy resources using CloudFormation](using-trusted-identity-propagation-cloudformation.md).

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-browser-oidc-tip-authentication-type"></a>



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

## IDP well known configuration URL
<a name="odbc-v4-driver-browser-oidc-tip-idp-well-known-config"></a>

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
<a name="odbc-v4-driver-browser-oidc-tip-client-id"></a>

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
<a name="odbc-v4-driver-browser-oidc-tip-workgroup-arn"></a>

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](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-browser-oidc-tip-application-role-arn"></a>

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](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-browser-oidc-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; | 

## Client secret
<a name="odbc-v4-driver-browser-oidc-tip-client-secret"></a>

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={{client-secret}}; | 

## Scope
<a name="odbc-v4-driver-browser-oidc-tip-scope"></a>

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
<a name="odbc-v4-driver-browser-oidc-tip-session-duration"></a>

The duration, in seconds, of the role session. For more information, see [AssumeRoleWithWebIdentity](https://docs.amazonaws.cn/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.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-browser-oidc-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-browser-oidc-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}}; | 

## listen\_port
<a name="odbc-v4-driver-browser-oidc-tip-port-number"></a>

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
<a name="odbc-v4-driver-browser-oidc-tip-response-timeout"></a>

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
<a name="odbc-v4-driver-browser-oidc-tip-enable-token-caching"></a>

Set `JwtTipFileCache=1` to reuse cached authentication tokens between connections. The default is `0`.