Skip to content

docs(auth): add OpenID Connect token placeholders and OPENID_EXPOSE_SUB_COOKIE documentation - #755

Open
busla wants to merge 2 commits into
LibreChat-AI:mainfrom
aproorg:docs/openid-token-placeholders
Open

docs(auth): add OpenID Connect token placeholders and OPENID_EXPOSE_SUB_COOKIE documentation#755
busla wants to merge 2 commits into
LibreChat-AI:mainfrom
aproorg:docs/openid-token-placeholders

Conversation

@busla

@busla busla commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Supersedes #483.
Documents OpenID Connect authentication features in LibreChat:

  • Documents OPENID_EXPOSE_SUB_COOKIE environment variable for cross-origin OAuth callback flows (e.g. AWS Bedrock AgentCore 3LO) in token-reuse.mdx (accompanies danny-avila/LibreChat#15607).
  • Adds the reference table and practical usage example for the seven {{LIBRECHAT_OPENID_*}} token placeholders in custom_endpoint.mdx (merged in danny-avila/LibreChat#9931).

Changes

token-reuse.mdx

  • Added OPENID_EXPOSE_SUB_COOKIE environment variable to the .env example block.
  • Added OPENID_EXPOSE_SUB_COOKIE description to "Additional Configuration Options".

custom_endpoint.mdx

  • Added "Available OpenID Token Placeholders" reference table:
    • {{LIBRECHAT_OPENID_TOKEN}} - OpenID access token (generic alias)
    • {{LIBRECHAT_OPENID_ACCESS_TOKEN}} - OpenID access token
    • {{LIBRECHAT_OPENID_ID_TOKEN}} - OpenID ID token
    • {{LIBRECHAT_OPENID_USER_ID}} - User ID from OpenID claims
    • {{LIBRECHAT_OPENID_USER_EMAIL}} - User email from OpenID claims
    • {{LIBRECHAT_OPENID_USER_NAME}} - User name from OpenID claims
    • {{LIBRECHAT_OPENID_EXPIRES_AT}} - Token expiration timestamp
  • Added callout explaining token availability requirements.
  • Added YAML example showing OpenID tokens used in custom headers.

Checklist

  • Rebased against latest main
  • Prettier formatting verified

…UB_COOKIE documentation

- Add OPENID_EXPOSE_SUB_COOKIE environment variable documentation in token-reuse.mdx
- Add table of seven available OpenID token placeholders in custom_endpoint.mdx
- Document placeholders: access token, ID token, user ID, email, name, and expiration
- Add practical usage example showing OpenID tokens in custom endpoint headers
- Explain cross-origin OAuth callback flow support for advanced authentication scenarios
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

@busla is attempting to deploy a commit to the LibreChat's projects Team on Vercel.

A member of the Team first needs to authorize it.

@berry-13

berry-13 commented Sep 4, 2026

Copy link
Copy Markdown
Member

thank you!

@berry-13

berry-13 commented Sep 4, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T19:34:54.020386Z 5d6a460 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d6a460d9a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread content/docs/configuration/authentication/OAuth2-OIDC/token-reuse.mdx Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants