

# Browser SAML

The `BrowserSAML` plugin opens the configured `login_url` in a browser and waits for a SAML response on a local callback server.

## Authentication type
<a name="odbc-v4-driver-browser-saml-authentication-type"></a>



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

## Preferred role
<a name="odbc-v4-driver-browser-saml-preferred-role"></a>

The Amazon Resource Name (ARN) of the role to assume. If your SAML assertion has multiple roles, you can specify this parameter to choose the role to be assumed. This role should be present in the SAML assertion. For more information about ARN roles, see [AssumeRole](https://docs.amazonaws.cn/STS/latest/APIReference/API_AssumeRole.html) in the *Amazon 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
<a name="odbc-v4-driver-browser-saml-session-duration"></a>

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

## Login URL
<a name="odbc-v4-driver-browser-saml-login-url"></a>

The single sign-on URL that is displayed for your application.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| login\_url | Required | none | login\_url=https://trial-1234567.okta.com/app/trial-1234567\_oktabrowsersaml\_1/zzz4izzzAzDFBzZz1234/sso/saml; | 

## Listen port
<a name="odbc-v4-driver-browser-saml-listen-port"></a>

The port number that is used to listen for the SAML response. This value should match the single sign-on (SSO) URL that you configured the IdP with (for example, `http://localhost:7890/athena`).



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| listen\_port | Optional | 7890 | listen\_port=7890; | 

## Timeout
<a name="odbc-v4-driver-browser-saml-timeout"></a>

The duration, in seconds, before the plugin stops waiting for the SAML response from the identity provider.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| timeout | Optional | 120 | timeout=90; | 