danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.

Home Page:https://librechat.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement: Ability to use the "sub" claim from OpenID for the username

alihacks opened this issue · comments

What features would you like to see added?

Currently, the username field is populated from "username", "given_name" or "email" fields - in that order. I would like to populate this from the "sub" claim. I would like to either support that in code or introduce new environment variable OPENID_USERNAME_CLAIM or similar to allow the user to configure this

More details

n/a

Which components are impacted by your request?

No response

Pictures

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct