GridGain Developers Hub

OpenID Connect Authentication

You can set up OpenID authentication for users to log in to Control Center with their OpenID accounts.

Get OpenID Credentials

First, set up OpenID credentials for your chosen OpenID provider. Specify the following parameters in your configuration:


Specify openid, profile, and email scopes in OpenID provider configuration.

Redirect URI

Redirect URI is required for your OpenID provider to know where to send responses to user authentication requests. The URI for Control Center uses the http://{host}:{port}/api/v1/oauth2/login/{providerName}, where providerName is the name you specify in the configuration file on the following step.

For example, if you use Google as a provider and run Control Center on localhost:3000, your redirect URI is:


If frontend and backend have different hosts or ports, set a control.base-url value equal to frontend URI, for example

Client ID and Secret

OpenID provider generates ID and secret, which should then be specified in the configuration file.

Add OpenID to Configuration

To connect Control Center to your OpenID provider, add OpenID configuration to the Configuration file.

The following configuration sets up a connection to Google’s OAuth 2.0 API:
    # Define client credentials.
        # You can specify any name as long as it is consistent
        # with the name in the provider section and redirect URI.
            client-id: {your-ID}
            client-secret: {your-secret}
    # Define your OpenID provider endpoints.
    # Most services provide this  information on a .well-known page.
    # For this example we use Google endpoints,
    # taken from the page.
            authorization-uri: # authorization_endpoint
            token-uri: # token_endpoint
            jwk-set-uri: # jwks_uri

After the configuration is set up, restart Control Center. Users will be able to log in by using their OpenID credentials.