mirror of
https://github.com/LibreChat-AI/librechat.ai.git
synced 2026-03-27 10:48:32 +07:00
Merge pull request #47 from happyZYM/main
Fix: fix some minor mistakes in the example .env file for integrating OpenID using keyCloak
This commit is contained in:
@@ -56,12 +56,13 @@ If you want to restrict access to users with specific roles, you can define role
|
||||
8. **Update Your Project's Configuration:**
|
||||
- Open the `.env` file in your project folder and add the following variables:
|
||||
```bash filename=".env"
|
||||
OPENID_ISSUER=http://localhost:8080/auth/realms/[YourRealmName]
|
||||
OPENID_ISSUER=http://localhost:8080/realms/[YourRealmName]
|
||||
OPENID_CLIENT_ID=[YourClientID]
|
||||
OPENID_CLIENT_SECRET=[YourClientSecret]
|
||||
OPENID_CALLBACK_URL=http://localhost:3080/oauth/openid/callback
|
||||
OPENID_SESSION_SECRET=[JustGenerateARandomSessionSecret]
|
||||
OPENID_CALLBACK_URL=/oauth/openid/callback
|
||||
OPENID_SCOPE="openid profile email"
|
||||
OPENID_REQUIRED_ROLE=[YourRequiredRole]
|
||||
OPENID_REQUIRED_ROLE_TOKEN_KIND=(access|id)
|
||||
OPENID_REQUIRED_ROLE_TOKEN_KIND=(access|id) # that means, `access` or `id`
|
||||
OPENID_REQUIRED_ROLE_PARAMETER_PATH="realm_access.roles"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user