

# Browser based with identity center integration

The `BrowserOidcTip` provider obtains a JSON web token through the browser OpenID Connect authorization flow and uses it in the trusted identity propagation authentication workflow. For configuration guidance, see [Use Trusted identity propagation with Amazon Athena drivers](using-trusted-identity-propagation.md).

The authentication workflow uses the identity context returned by `CreateTokenWithIAM` in the Amazon STS `AssumeRole` request.

## Credentials provider
<a name="jdbc-v4-driver-browser-oidc-tip-credentials-provider"></a>

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



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

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

The URL from which the driver retrieves the identity provider OpenID Connect configuration. The driver reads the `authorization_endpoint` and `token_endpoint` fields from the returned JSON.

If discovery fails, check that the client can retrieve the configuration URL and that the response contains the `authorization_endpoint` and `token_endpoint` fields. The driver reports an error for a non-200 response or a missing endpoint field.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| IdpWellKnownConfigurationUrl | none | Required | none | 

## Client identifier
<a name="jdbc-v4-driver-browser-oidc-tip-client-id"></a>

The client identifier issued to the application by the OpenID Connect provider.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| OidcClientId | none | Required | none | 

## WorkgroupArn
<a name="jdbc-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). 



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| WorkgroupArn | none | Required | none | 

## JWT application role ARN
<a name="jdbc-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). 



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| ApplicationRoleArn | none | Required | none | 

## JWT role session name
<a name="jdbc-v4-driver-browser-oidc-tip-role-session-name"></a>

The session name included in the Amazon STS request. Use a value that meets the `RoleSessionName` length and character requirements in the Amazon STS API reference.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| JwtRoleSessionName | RoleSessionName; role\_session\_name (deprecated) | Required | none | 

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

The optional client secret passed to the OpenID Connect token request. When it is omitted, the driver does not include a client secret.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| OidcClientSecret | none | Optional | none | 

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

The scope string passed to the identity provider authorization request. When omitted, the driver uses `openid email offline_access`. Configure the scope for your identity provider application.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| Scope | none | Optional | openid email offline\_access | 

## Role session duration
<a name="jdbc-v4-driver-browser-oidc-tip-role-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).



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| RoleSessionDuration | Duration (deprecated) | Optional | 3600 | 

## JWT access role ARN
<a name="jdbc-v4-driver-browser-oidc-tip-access-role-arn"></a>

The ARN of the access role that the driver assumes by calling Amazon STS `AssumeRole` with the IAM Identity Center identity context. 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 | 
| --- | --- | --- | --- | 
| AccessRoleArn | none | Optional | none | 

## IAM Identity Center customer managed application ARN
<a name="jdbc-v4-driver-browser-oidc-tip-customer-idc-application-arn"></a>

The ARN of IAM Identity Center customer managed application. For more information, see [customer managed applications](https://docs.amazonaws.cn/singlesignon/latest/userguide/customermanagedapps.html).



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| CustomerIdcApplicationArn | none | Optional | none | 

## IdpPortNumber
<a name="jdbc-v4-driver-browser-oidc-tip-idp-port-number"></a>

For `BrowserOidcTip`, set `IdpPortNumber` to change the local OAuth callback port. The default is `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="jdbc-v4-driver-browser-oidc-tip-idp-response-timeout"></a>

The timeout in seconds to wait for the OAuth 2.0 callback response.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| IdpResponseTimeout | idp\_response\_timeout (deprecated) | Optional | 120 | 

## EnableTokenCaching
<a name="jdbc-v4-driver-browser-oidc-tip-enable-token-caching"></a>

Set `EnableTokenCaching=true` to reuse authentication tokens between connections. The default is `false`.