Authentication
Dremio supports several types of authentication for identity providers, client connections, and user types, including both regular users and service users.
Authentication Methods by Application Type
| App Type | Enterprise OIDC Provider | LDAP or Dremio Local Provider |
|---|---|---|
| Dremio Console | ||
| User Clients & Applications |
| |
| M2M Applications |
|
Dremio Console Authentication Methods
Single Sign-On
The user is authenticated by the configured OIDC identity provider, including automatic authentication if the user is already signed in to the identity provider.
Username and Password
The user provides a username and password combination for authentication. See User Management for information on adding and managing local and external users.
Personal Access Token
A personal access token (PAT) is used in place of a user password. PATs provide a convenient way to create a client connection without exposing a user's password, but can pose a security risk if not properly managed. PATs can be configured with long lifetimes, and lost or compromised tokens may allow access to sensitive data until the token expires. Before use, the administrator must activate PATs for the Dremio cluster.
To use a PAT, the user must follow these steps:
- Create a PAT in the Dremio console. Users can create additional PATs using the Dremio console or the PAT creation REST API.
- Use the PAT to connect with the Dremio console, Arrow Flight SQL JDBC, Arrow Flight SQL ODBC, or Dremio REST.
User Applications Authentication Methods
External JWT
Client apps can request OAuth 2.0 JSON Web Tokens (JWTs) from external token providers, allowing users to authenticate through custom or third-party applications without exposing their credentials to the client application.
After obtaining an external JWT, the client app can create connections to Dremio using Arrow Flight SQL JDBC or Arrow Flight SQL ODBC. However, Dremio recommends external JWT token exchange because Dremio OAuth access tokens are smaller and verification is faster.
To use an external JWT, the administrator must configure Dremio to use the Enterprise OIDC provider as an external token provider.
After configuration, a client application performs the following steps:
- A user authenticates with the external token provider and the client receives a JWT.
- Create a connection to Dremio using Arrow Flight SQL JDBC or Arrow Flight SQL ODBC and the external JWT.
External JWT Exchange
Exchanging the external JWT for an OAuth access token enables additional connection choices after authenticating with the external token provider. A client application performs the following steps:
- A user authenticates with the external token provider and the client receives a JWT.
- Use the
/oauth/tokenREST API to exchange the JWT for an OAuth access token. - Create a connection to Dremio using Arrow Flight SQL JDBC, Arrow Flight SQL ODBC, or Dremio REST and the OAuth access token.
M2M Applications Authentication Methods
OAuth Client Credentials
Service users authenticate using the OAuth 2.0 client credentials flow, where a client ID and client secret are exchanged for access tokens. This is the primary authentication method for service users and provides:
- Automated authentication without manual login processes
- Short-lived access tokens that enhance security
- Centralized credential management through the OAuth system
- Audit trails for programmatic access
To use OAuth client credentials:
- Create a service user in the Dremio console under Settings > User Management > Service Users. Upon creation, Dremio generates a unique client ID and client secret.
- Use the
/oauth/tokenREST API to exchange the client ID and client secret for an OAuth access token. - Create a connection to Dremio using Arrow Flight SQL JDBC, Arrow Flight SQL ODBC, or Dremio REST and the OAuth access token.
External Service Principal Authentication
You can configure Dremio service users to authenticate using service principals from Microsoft Entra ID or another OIDC provider. This allows service users to authenticate using JWTs from external identity providers, which are then exchanged for Dremio OAuth access tokens.
This method is useful for organizations that want to:
- Centralize service principal management in their identity provider
- Use existing Microsoft Entra ID service principals for Dremio access
- Maintain consistent authentication patterns across multiple systems
To use external service principal authentication:
- Create a service user in the Dremio console and configure external credentials linking to your service principal in Microsoft Entra ID or another OIDC provider.
- The service user authenticates with the external identity provider and receives a JWT.
- Use the
/oauth/tokenREST API to exchange the external JWT for an OAuth access token. - Create a connection to Dremio using Arrow Flight SQL JDBC, Arrow Flight SQL ODBC, or Dremio REST and the OAuth access token.