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:
Danny Avila
2024-06-11 18:40:20 -04:00
committed by GitHub

View File

@@ -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"
```