Authentication and Authorization with OIDC/OAuth 2.0 (original) (raw)

MongoDB Enterprise supports OpenID Connect (OIDC) and OAuth 2.0 authentication and authorization for both human users and applications. These protocols enable Workforce and Workload Identity Federation, which streamline authentication and authorization by integrating with external identity providers. This lets you simplify your security management and enhance your system's scalability and flexibility.

Important

OpenID Connect (OIDC) is only supported on Linux.

Workload and Workforce Identity Federation use OIDC and OAuth 2.0 as follows:

To use Workforce and Workload Identity Federation, you must use MongoDB Enterprise and have MongoDB 7.0.11 or later.

To verify that you are using MongoDB Enterprise, pass the --versioncommand line option to the mongod or mongos:

In the output from this command, look for the string modules: subscription or modules: enterprise to confirm you are using the MongoDB Enterprise binaries.

Select an authentication method to get started: