View a markdown version of this page

Browser SSO OIDC credentials - Amazon Athena

Browser SSO OIDC credentials

Browser SSO OIDC is an authentication plugin that works with AWS IAM Identity Center. The plugin performs dynamic client registration with SSO OIDC, opens your default browser to the SSO authorization URL, receives the authorization code through a local callback server, exchanges it for an SSO access token, and uses that token to obtain temporary AWS credentials. The plugin uses the Authorization Code with PKCE flow.

For information on enabling and using IAM Identity Center, see Step 1: Enable IAM Identity Center in the AWS IAM Identity Center User Guide.

Credentials provider

The credentials provider that will be used to authenticate requests to AWS. Set the value of this parameter to BrowserSSOOIDC.

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

IAM Identity Center start URL

The URL for the AWS access portal. The IAM Identity Center RegisterClient API action uses this value for the issuerUrl parameter.

Parameter name Alias Parameter type Default value
SsoStartUrl sso_oidc_start_url Required none

IAM Identity Center region

The AWS Region where IAM Identity Center is configured. The SSOOIDCClient and SSOClient use this value for the region parameter.

Parameter name Alias Parameter type Default value
SsoOidcRegion sso_oidc_region Required none

Account ID

The identifier for the AWS account that is assigned to the user. The IAM Identity Center GetRoleCredentials API action uses this value for the accountId parameter.

Parameter name Alias Parameter type Default value
SsoOidcAccountId sso_oidc_account_id Required none

Role name

The friendly name of the role that is assigned to the user. The name that you specify for this permission set appears in the AWS access portal as an available role. The IAM Identity Center GetRoleCredentials API action uses this value for the roleName parameter.

Parameter name Alias Parameter type Default value
SsoOidcRoleName sso_oidc_role_name Required none

Listen port

The local port number for the OAuth 2.0 callback server. The default generated redirect URI is http://127.0.0.1:7890/oauth/callback.

Parameter name Alias Parameter type Default value
ListenPort listen_port (deprecated) Optional 7890

Identity provider response timeout

The duration, in seconds, before the driver stops waiting for the SSO authorization response. The minimum value is 60 seconds.

Parameter name Alias Parameter type Default value
IdpResponseTimeout idp_response_timeout (deprecated) Optional 120

Enable token caching

When enabled, reuses cached SSO access tokens across driver connections. The driver can refresh an expired token. If no cached token is available, or an expired token cannot be refreshed, the driver starts browser authentication.

Parameter name Alias Parameter type Default value
EnableTokenCaching none Optional FALSE