OpenID Connect Login Options


The OpenID Connect (or OIDC) standard support is closely related to our OAuth Login Options, as it has been based on the OAuth 2.0 standard. Quick summary: OIDC is using OAuth 2.0, but adds a standardized way how authentication is done, while this is up to providers when using OAuth 2.0 for authentication.

Being a standard, you can easily enable the use of any OpenID connect compliant provider out there for login into your Dataverse installation.

Some prominent provider examples:

You can also either host an OpenID Connect identity management on your own or use a customizable hosted service:

  • Okta is a hosted solution

  • Keycloak is an open source solution for an IDM/IAM

  • Unity IDM is another open source IDM/IAM solution

Other Use Cases and Combinations

  • Using your custom identity management solution might be a workaround when you seek for LDAP support, but don’t want to go for services like Microsoft Azure AD et al.

  • You want to enable users to login in multiple different ways but appear as one account to the Dataverse installation. This is currently not possible within the Dataverse Software itself, but hosting an IDM and attaching the Dataverse installation solves it.

  • You want to use the eduGain Federation or other well known SAML federations, but don’t want to deploy Shibboleth as your service provider. Using an IDM solution in front easily allows you to use them without hassle.

  • There’s also a Shibboleth IdP (not SP!) extension, so if you already have a Shibboleth identity provider at your institution, you can reuse it more easily with your Dataverse installation.

  • In the future, OpenID Connect might become a successor to the large scale R&E SAML federations we have nowadays. See also OpenID Connect Federation Standard (in development)

How to Use

Just like with OAuth Login Options you need to obtain a Client ID and a Client Secret from your provider(s).


The Dataverse Software does not support OpenID Connect Dynamic Registration. You need to apply for credentials out-of-band.

The Dataverse installation will discover all necessary metadata for a given provider on its own (this is part of the standard).

To enable this, you need to specify an Issuer URL when creating the configuration for your provider (see below).

Finding the issuer URL is best done by searching for terms like “discovery” in the documentation of your provider. The discovery document is always located at <issuer url>/.well-known/openid-configuration (standardized). To be sure, you can always lookup the issuer value inside the live JSON-based discovery document.

Note if you work with Keycloak, make sure the base URL is in the following format: https://host:port/realms/{realm} where {realm} has to be replaced by the name of the Keycloak realm.

After adding a provider, the Log In page will by default show the “builtin” provider, but you can adjust this via the :DefaultAuthProvider configuration option. For details, see Configuration.


In contrast to our OAuth Login Options, you can use multiple providers by creating distinct configurations enabled by the same technology and without modifying the Dataverse Software code base (standards for the win!).

Enabling PKCE Security

Many providers these days support or even require the usage of PKCE to safeguard against some attacks and enable public clients that cannot have a secure secret to still use OpenID Connect (or OAuth2).

The Dataverse-built OIDC client can be configured to use PKCE and the method to use when creating the code challenge can be specified. See also this explanation of the flow for details on how this works.

As we are using the Nimbus SDK as our client library, we support the standard PLAIN and S256 (SHA-256) code challenge methods. “SHA-256 method” is the default as recommend in RFC7636. If your provider needs some other method, please open an issue.

The provisioning sections below contain in the example the parameters you may use to configure PKCE.

Provision a Provider

Depending on your use case, you can choose different ways to setup one or multiple OIDC identity providers.

Using JVM Options has the advantage of being consistent and does not require additional calls to the API. It can only configure one provider though, yet you can mix with other provider definitions via API.

Using the REST API has the advantage of provisioning multiple, different OIDC providers. Depending on your use case, it has the drawback of needing additional API calls.

If you only need one single provider in your installation and it is using OIDC, use the JVM options, as it requires fewer extra steps and allows you to keep more configuration in a single source.

Provision via REST API

Note: you may omit the PKCE related settings from factoryData below if you don’t plan on using PKCE - default is disabled.

Please create a my-oidc-provider.json file, replacing every <...> with your values:

    "id":"<a unique id>",
    "title":"<a title - shown in UI>",
    "subtitle":"<a subtitle - currently unused in UI>",
    "factoryData":"type: oidc | issuer: <issuer url> | clientId: <client id> | clientSecret: <client secret> | pkceEnabled: <true/false> | pkceMethod: <PLAIN/S256/...>",

Now load the configuration into your Dataverse installation using the same API as with OAuth Login Options:

curl -X POST -H 'Content-type: application/json' --upload-file my-oidc-provider.json http://localhost:8080/api/admin/authenticationProviders

The Dataverse installation will automatically try to load the provider and retrieve the metadata. Watch the app server log for errors. You should see the new provider under “Other options” on the Log In page, as described in the Account Creation + Management section of the User Guide.

Provision via JVM Options

A single provider may be provisioned using JVM Options. It may be accompanied by more providers configured via REST API. Note that this provider will only be deployed at startup time and (currently) cannot be reconfigured without a restart.

All options below may be set via MicroProfile Config API sources. Examples: use environment variable DATAVERSE_AUTH_OIDC_ENABLED for the dataverse.auth.oidc.enabled option or DATAVERSE_AUTH_OIDC_CLIENT_ID for the dataverse.auth.oidc.client-id option.

The following options are available:






Enable or disable provisioning the provider via MicroProfile.




The client-id of the application to identify it at your provider.




A confidential secret to authorize application requests to the provider as legit.




The base URL of the OpenID Connect (OIDC) server as explained above.




Set to true to enable PKCE in auth flow.




Set code challenge method. The default value is the current best practice in the literature.




The UI visible name for this provider in login options.


OpenID Connect


A subtitle, currently not displayed by the UI.


OpenID Connect


Tune the maximum size of all OIDC providers’ verifier cache (the number of outstanding PKCE-enabled auth responses).




Tune the maximum age, in seconds, of all OIDC providers’ verifier cache entries. Default is 5 minutes, equivalent to lifetime of many OIDC access tokens.