Skip to content

Add option to hide SSO login button on admin panel #61

@er-16

Description

@er-16

Feature Request

When LibreChat has OpenID/SAML configured, the admin panel always shows the SSO login button alongside the email/password form. There is no way to hide the SSO button while keeping local login enabled.

Current Behavior

  • ADMIN_SSO_ONLY=true - hides email/password form, forces SSO only
  • ADMIN_SSO_ONLY=false - shows both email/password AND SSO button

Expected Behavior

An option to hide the SSO button entirely while keeping local login. For example:

  • ADMIN_SSO_ENABLED=false - hides the SSO button, shows only email/password
  • Or ADMIN_HIDE_SSO=true - same effect

Use Case

In environments where admin panel SSO requires additional setup (ADMIN_PANEL_URL env var on LibreChat server, redirect URI registration with the OIDC provider), admins may prefer to use email/password login for the admin panel while SSO remains configured for the main LibreChat app.

Currently, the SSO button shows up and returns "unauthorized" if ADMIN_PANEL_URL is not configured on the LibreChat server, which is confusing for admins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions