---
title: OIDC
slug: oidc
createdAt: 2025-11-12T03:16:08.345Z
---

# Creating an Authorization Source

1. Obtain the **Client ID** and **Client Secret** from your third-party system. These credentials must be created **based on the URL of your UI**. These values will be needed in later steps.
2. From the Main Dashboard, click **System** on the left menu.
3. From the left menu, click **Auth Sources**
4. From the left menu, click **New**
5. **Name -&#x20;**&#x61; name to identify this authorization source. This name will appear on the sign-on button on the UI login page.
6. Select the **Driver** from the list of available options.

:::hint{type="info"}
The **Open ID** setting provides a generic option that could work for any Open ID source, while specific options, such as Google, Okta, and Entra ID, provide wrappers with configuration forms that are specialized for that particular implementation.
:::

7. **Redirect URI -&#x20;**&#x61;utomatically populated with the address of the UI and normally shouldn't be changed. This address must be a public address or otherwise accessible by the remote OAuth source.
8. **Client ID&#x20;**&#x61;nd **Client Secret -&#x20;**&#x76;alues generated on the remote OAuth source, based on your UI URL.
9. **Remote User Fields -&#x20;**&#x64;efine one or more fields that can be used for locating users in the OAuth source. The field is auto populated with a default list of common fields that work across various common OAuth implementations.

:::hint{type="warning"}
For security reasons, it's good practice to only use fields that end users can't change.
:::

10. **Additional Configuration**:

****<font color="#2166ae">**d Fields**</font>

- **Update Remote User -&#x20;**&#x75;pdates the **Remote Username** field of the user to the unique ID from the OAuth Source. Enabling this option allows for initially locating the user based on more friendly fields (defined in **Remote User Field***s*, above) but subsequently changing the **Remote Username** field to match a unique id from the Source system. This ensures the user record remains constant even as extraneous fields such as email address or friendly username may change over time.
- **Update User Email Address -&#x20;**&#x75;pdates Email address field based on email address from the OAuth source.
- **Update User Display Name -&#x20;**&#x75;pdates user display name based on display name from the OAuth source.

<font color="#2166ae">**Optional Fields**</font>

- **Scope -&#x20;**&#x76;aries with different implementations; consult source OAuth2 documentation, where appropriate for more information. In most cases the default "openid profile email" will work.
- **Group Scope -&#x20;**&#x76;aries with different implementations; consult source OAuth2 documentation for more information. In most cases, the Group Scope can be set to the word "groups". Group Scope is required when using the **Update Group Membership** option.
- **Require Verified Email Address -&#x20;**(for OAuth2 implementations that support verifying user email address) only allow authentication of users with the verified email address flag enabled/true in the source.
- **Update Group Membership -&#x20;**&#x75;pdate user's group membership (each time user logs in) to correspond with group membership from the OAuth source.
- **Show in a Menu -&#x20;**&#x63;hanges the display to show a drop-down menu instead of a list.

:::hint{type="warning"}
**Debug Mode** - turns on verbose logging for the authorization source. This should only be enabled when troubleshooting. Leaving this on can potentially impact the performance of your VDC.
:::

## User Creation

- **Auto-Create Users -&#x20;**&#x75;sers are created automatically (on-demand, upon initial login) corresponding to users in the OAuth source. Use a single asterisk to apply to all users.
- **Auto-Create Users in Group -&#x20;**&#x6F;nly users within specified OAuth2 source groups are created automatically, on-demand, upon initial login. A specific group name can be entered or a regular expression to include groups with a matching pattern.

:::hint{type="info"}
In order to auto-create users based on group(s), the **Auto-Create Users** field should be blank.
:::

:::hint{type="info"}
Users that will use an external Authorization Source can optionally be created manually in the UI; when creating the new user: Select the appropriate Authorization Source in the dropdown list.
:::

- Set **Remote Username** to match one of the fields defined in **Remote User Fields** (fields that are used to find the user in the external authorization source). Typically, it is best to use the user's login name or unique user ID.

## Login Styling

Login styling defines the appearance of the sign-in button on the login page.

- **Sign-in Button Background Color -&#x20;**&#x62;ackground color for the sign-in button.
- **Sign-in Button Text Color -&#x20;**&#x74;ext color of the sign-in button.
- **Sign-in Button Font Awesome Icon -&#x20;**&#x73;pecifies an alternate icon for the sign-in button; a listing of available Font Awesome Icons can be found [here](https://fontawesome.com/v4/cheatsheet/).
- **Sign-in Button Font Awesome Icon Color -&#x20;**&#x73;pecifies an alternate color for the sign-in button; use standard HEX codes (e.g. #FF5733).

***

# Configuration

Configuring a central identity provider involves the following steps:

1. Create an upstream authorization source (e.g. Google, Entra ID, Okta, etc.) on the system that will act as the identity provider.
2. Set up the platform as an [OIDC Provider](https://docs.korgrid.com/oidc#oidc-provider)
3. Configure the UI as an [OIDC Client](https://docs.korgrid.com/oidc#oidc-client)

## OIDC Provider

<font color="#2166ae">**Prerequisites**</font>

- Administrative access to your tenant
- Valid SSL certificate installed on the tenant
- Basic understanding of OIDC concepts
- URLs of client tenants that will use this authentication

<font color="#2166ae">**Configuration**</font>

:::::WorkflowBlock
:::WorkflowBlockItem
**Access OIDC Settings**

1. From the **Top Menu**, click **System -> OIDC Applications**
2. From the left menu, click **New**
:::

:::WorkflowBlockItem
**Configure Basic Settings**

1. Enter a descriptive **Name** for the application
2. Make sure the **Enabled** checkbox is checked
3. Add an optional **Description**
:::

::::WorkflowBlockItem
**Set Up Redirect URIs**

- **Redirect URI** - Enter the callback URL(s) where users will be redirected after authentication using the format `https://corpname.example.com`. Multiple URI's can be added for different client systems.

:::hint{type="success"}
You can use wildcards in redirect URIs.

For multiple systems, use `https://corpname-site*.example.com`

For multiple subdomains, use `https://systemname.*.example.com`
:::
::::

:::WorkflowBlockItem
**Configure Authentication Options**

1. **Force Authorization Source** - Optionally select a third-party provider
2. **Map User** - Choose if all verified users should map to a specific account
3. **Scope Settings** - **Profile**, **Email**, **Groups&#x20;**&#x63;an be toggled for access restrictions if needed
:::

:::WorkflowBlockItem
**Save Configuration**

Click **Submit** - The system will then generate a Client ID and Client Secret
:::
:::::

### Retrieving Client Credentials

1. From the Main Dashboard, click **System**
2. From the left menu, click **OIDC Applications**
3. Double-click your OIDC application
4. Your **Client ID**, **Client Secret**, and **Well-Known Configuration URL** will be displayed

### Best Practices

- Create separate OIDC applications for different client groups
- Regularly review and update access restrictions
- Use specific redirect URIs instead of wildcards when possible
- Document which systems are using each OIDC application

### Troubleshooting

:::hint{type="warning"}
- **Authentication Fails**
  - Verify SSL certificate is valid and not expired
  - Check redirect URI matches exactly
  - Ensure client ID and secret are correctly copied
- **Scope Access Denied**
  - Verify required scopes are enabled
  - Check user permissions in restriction settings
- **Redirect Problems**
  - Confirm URL format matches redirect URI
  - Verify wildcard patterns if used
  - Check for SSL certificate issues
:::

## OIDC Client

<font color="#2166AE">**Prerequisites**</font>

- Access to the tenant's OIDC provider
- Well Known Configuration URL from the provider
- Client ID and Client Secret from the provider
- Administrative access to the client's tenant system
- Full URL of the client's tenant

<font color="#2166AE">**Configuration**</font>

::::WorkflowBlock
:::WorkflowBlockItem
**Access Authorization Settings**

1. From the **Top Menu**, click **System -> Auth Sources**
2. From the left menu, click **New**
:::

:::WorkflowBlockItem
**Configure Basic Settings**

- **Name**: Enter an identifier for this auth source (appears on login button)
- **Driver**: Select **OpenID (Well Known Config)**
- **Well-Known URL**: Enter the Well-Known Configuration URL
- **Redirect URI**: Enter the full URL of your tenant UI
- **Client ID**: Paste the client ID from the provider
- **Client Secret**: Paste the client secret from the provider
:::

:::WorkflowBlockItem
**Configure Authentication Parameters**

Default values typically work best for these settings

- **Token hint parameter** - Leave as `post_logout_redirect_uri`
- **Redirect parameter** - Leave as `post_logout_redirect_uri`
- **Scope** - Leave as `openid profile email groups`
- **Group Scope** - Leave as `groups`
:::

:::WorkflowBlockItem
**Enable Recommended Options**

Check the following boxes for optimal functionality:

- **Decode ID Token**
- **Update Remote User**
- **Update User Email Address**
- **Update User Display Name**
- **Update Group Membership**
:::

:::WorkflowBlockItem
**Configure User Creation**

Choose your preferred user creation method.

- **Auto-Create Users** - Enter `.*` to create all users automatically
- **Auto-Create Users in Group** - Specify groups for restricted auto-creation
:::

:::WorkflowBlockItem
**Save Configuration**

Click **Submit**
:::
::::

### Best Practices

- Test authentication with a test user before rolling out to production
- Keep debug mode disabled unless troubleshooting
- Document your configuration choices for future reference
- Regularly verify user synchronization is working as expected

### Troubleshooting

:::hint{type="warning"}
- **Authentication Fails**
  - Verify Client ID and Secret are correct
  - Check Well Known Configuration URL
  - Ensure Redirect URI matches exactly
- **User Sync Issues**
  - Verify Group Scope is enabled
  - Check group membership settings
  - Enable Debug Mode temporarily
- **Login Button Missing**
  - Verify authorization source is enabled
  - Check login styling settings
  - Clear browser cache
:::

