> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vibraniumlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Up Custom OIDC SSO

This guide walks an organization admin through configuring a custom OpenID Connect (OIDC) identity provider as your SSO provider in Vibranium Labs. Use this guide if your identity provider is not Okta or Microsoft Entra ID but supports standard OIDC (e.g., Keycloak, Auth0, Google Workspace, OneLogin, Ping Identity, or an in-house SSO system).

***

## Prerequisites

* Organization admin access in Vibranium Labs
* Admin access to your OIDC identity provider
* Your identity provider must support the **OIDC Authorization Code flow**
* Your identity provider must expose a `.well-known/openid-configuration` discovery endpoint (recommended but not required)

***

## Part 1 — Configure Your Identity Provider

### Step 1 — Register a New Application

In your identity provider's admin console, create a new application (sometimes called a "client" or "relying party") with the following settings:

| Setting | Value |
| - | - |
| Application type | Web Application |
| Sign-in protocol | OpenID Connect (OIDC) |
| Grant type | Authorization Code |

### Step 2 — Configure the Redirect URI

Set the sign-in redirect URI (sometimes called "callback URL") to:

```javascript theme={null}
https://api-prod.vibraniumlabs.ai/auth/oidc/callback
```

This is where your identity provider will send users after successful authentication.

### Step 3 — Configure Scopes

Ensure your application grants the following scopes:

* `openid` — Required for OIDC
* `email` — Required to identify the user
* `profile` — Recommended for user display name

### Step 4 — Copy Your Credentials

After creating the application, you will need:

* **Client ID** — The unique identifier for your application
* **Client Secret** — The secret key used to authenticate your application

### Step 5 — Find Your Issuer URL

The issuer URL is your identity provider's base URL for OIDC. It typically looks like:

| Provider | Issuer URL format |
| - | - |
| Keycloak | `https://keycloak.example.com/realms/{realm}` |
| Google Workspace | `https://accounts.google.com` |
| OneLogin | `https://{subdomain}.onelogin.com/oidc/2` |
| Auth0 | `https://{tenant}.auth0.com` |
| Ping Identity | `https://auth.pingone.com/{environment-id}/as` |
| Custom / In-house | Check your provider's documentation |

> **Tip:** You can verify your issuer URL by appending `/.well-known/openid-configuration` and opening it in a browser. A valid response is a JSON document containing `authorization_endpoint`, `token_endpoint`, and other OIDC metadata.

***

## Part 2 — Configure Vibranium Labs

### Step 6 — Open SSO Settings

1. Log in to Vibranium Labs as an organization admin.
2. Navigate to **Settings → Integrations**.
3. Locate the **OIDC SSO** card and click **Configure**.

### Step 7 — Select Custom Provider

1. In the **Identity Provider** dropdown, select **Custom (Any OIDC Provider)**.
2. Enter a **Provider Name** (e.g., *Nano SSO*, *Keycloak*, *Company IdP*). This name is shown to users on the login page.

### Step 8 — Enter the Issuer URL

Paste your issuer URL from Step 5 into the **Issuer URL** field.

Click **Discover** to automatically populate:

* Authorization Endpoint
* Token Endpoint
* JWKS URI (UserInfo endpoint)

> **Note:** If your provider does not support OIDC discovery, expand the **Advanced Endpoints** section and enter these URLs manually. Consult your identity provider's documentation for the correct values.

### Step 9 — Enter Credentials

| Field | Value |
| - | - |
| Client ID | From Step 4 |
| Client Secret | From Step 4 |

### Step 10 — Configure Options

* **Just-In-Time Provisioning** — Enable this if you want users to be auto-created on their first SSO login. If disabled, users must be manually invited before they can sign in via SSO.
* **Admin Recovery** — We recommend keeping this enabled so admins can still access the portal if your IdP is temporarily unavailable.

### Step 11 — Save and Test

1. Click **Save**.
2. Open a new incognito/private browser window.
3. Navigate to the Vibranium Labs login page.
4. Enter an email address associated with your identity provider. Click **Continue**.
5. You should be redirected to your IdP's login page.
6. After authenticating, you should land in the Vibranium Labs portal.

***

## Troubleshooting

### "Invalid redirect URI" error

The redirect URI in your identity provider does not match what Vibranium Labs is sending. Verify that the redirect URI is set to exactly:

```javascript theme={null}
https://api-prod.vibraniumlabs.ai/auth/oidc/callback
```

### "Discovery failed" when clicking Discover

Your issuer URL may be incorrect, or your identity provider does not expose a `.well-known/openid-configuration` endpoint. Try:

1. Verify the issuer URL by opening `{issuer}/.well-known/openid-configuration` in a browser.
2. If your provider doesn't support discovery, manually enter the endpoints.

### Token verification fails after login

This usually means the JWKS URI is incorrect or your identity provider's signing keys have rotated. Verify the JWKS URI by opening it in a browser — it should return a JSON document containing public keys.

### Users see "Account not found" after IdP login

Just-In-Time Provisioning is disabled and the user does not have an existing Vibranium Labs account. Either:

* Enable JIT Provisioning in SSO settings, or
* Invite the user to your organization before they attempt SSO login.

### "Email claim missing" error

Your identity provider is not returning the user's email in the ID token. Ensure that the `email` scope is granted and that your IdP is configured to include the `email` claim in tokens. Some providers require explicit claim mapping.

### Admin locked out

If your IdP is unavailable and Admin Recovery is enabled, open the [login page](https://app.vibraniumlabs.ai/login), enter your **Work email**, and click **Can't access your SSO?**. Follow the recovery login instructions.

***

## Advanced: Manual Endpoint Configuration

If your identity provider does not support OIDC discovery, you need to provide these endpoints manually:

| Endpoint | Purpose | How to find it |
| - | - | - |
| Authorization Endpoint | Where users are sent to log in | Check your IdP docs, usually ends in `/authorize` |
| Token Endpoint | Where Vibranium Labs exchanges the auth code for tokens | Check your IdP docs, usually ends in `/token` |
| JWKS URI | Where Vibranium Labs fetches public keys to verify tokens | Check your IdP docs, usually ends in `/jwks` or `/.well-known/jwks.json` |

***

## Next Steps

* Verify that all team members can sign in via your identity provider.
* Optionally, configure SCIM provisioning for automated user lifecycle management.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.