View a markdown version of this page

AD FS - Amazon Athena
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AD FS

AD FS is a SAML based authentication plugin that works with the Active Directory Federation Service (AD FS) identity provider. The plugin supports Integrated Windows authentication and form-based authentication. If you use Integrated Windows Authentication, you can omit the user name and password. For information about configuring AD FS and Athena, see Configure federated access to Amazon Athena for Microsoft AD FS users using an ODBC client.

Authentication type

Connection string name Parameter type Default value Connection string example
AuthenticationType Required IAM Credentials AuthenticationType=ADFS;

User ID

Your user name for connecting to the AD FS server. For Integrated Windows Authentication, you can omit the user name. If your AD FS setup requires a user name, you must provide it in the connection parameter.

Connection string name Parameter type Default value Connection string example
UID Optional for windows integrated authentication none UID=domain\username;

Password

Your password for connecting to the AD FS server. Like the user name field, you can omit the password if you use Integrated Windows Authentication. If your AD FS setup requires a password, you must provide it in the connection parameter.

In the connection string example, replace the placeholder with the value for your connection.

Connection string name Parameter type Default value Connection string example
PWD Optional for windows integrated authentication none PWD=password;

Preferred role

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 present in the SAML assertion. For more information about ARN roles, see AssumeRole 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

The role session duration in seconds. When this parameter is unset, the driver omits DurationSeconds from its Amazon STS or Lake Formation 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;

IdP host

The name of the AD FS service host.

Connection string name Parameter type Default value Connection string example
idp_host Required none idp_host=<server-name>.<company.com>;

IdP port

The port to use to connect to the AD FS host.

Connection string name Parameter type Default value Connection string example
idp_port Required none idp_port=443;

LoginToRP

For AD FS form-based authentication, the relying-party identifier passed in the loginToRp query parameter of the AD FS sign-in URL.

Connection string name Parameter type Default value Connection string example
LoginToRP Optional urn:amazon:webservices LoginToRP=trustedparty;