Skip to content

Commit 03d5760

Browse files
chore: update dex oidc variables (#203)
Signed-off-by: Hemanth Krishna <[email protected]> Signed-off-by: Hemanth Krishna <[email protected]>
1 parent 45b2689 commit 03d5760

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

website/docs/user-guides/chaoscenter-oauth-dex-installation.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,23 @@ litmusportal-server-9c4d85f57-5r6km 2/2 Running 0
102102
mongo-0 1/1 Running 0 5m57s
103103
```
104104

105-
### Configuring `litmusportal-server` to enable Dex features
105+
### Configuring `chaos-litmus-auth-server` to enable Dex features
106106

107107
To set up Dex, we would require to modify our litmusportal-server a bit in order to communicate with Dex. This will be achieved by adding some environment variables
108108

109109
- `OIDC_ISSUER`: The place where the Dex OIDC is hosted, i.e `NODE_IP:32000` or `https://dex.yourdomain.com`
110110
- `DEX_ENABLED`: This variable enables dex features in the litmusportal-server
111111
- `DEX_OAUTH_CALLBACK_URL`: This is the url that will be called back after user completes thier OAuth, this will be the litmusportal-frontend service
112+
- `DEX_OAUTH_CLIENT_ID`: This parameter is defined in the `dex-deployment.yaml` file the defaults being `LitmusPortalAuthBackend`
113+
- `DEX_OAUTH_CLIENT_SECRET`: This parameter is defined in the `dex-deployment.yaml` file the defaults being `ZXhhbXBsZS1hcHAtc2VjcmV0`
112114

113115
Set your variables using
114116

115117
```bash
116-
kubectl set env deployment/litmusportal-server -n litmus --containers="auth-server" DEX_ENABLED=true OIDC_ISSUER=<REPLACE_NODE_IP>:32000 DEX_OAUTH_CALLBACK_URL=https://<REPLACE_FRONTEND_URL>/auth/dex/callback
118+
kubectl set env deployment/chaos-litmus-auth-server -n litmus --containers="auth-server" DEX_ENABLED=true OIDC_ISSUER=<REPLACE_NODE_IP>:32000 DEX_OAUTH_CALLBACK_URL=https://<REPLACE_FRONTEND_URL>/auth/dex/callback DEX_OAUTH_CLIENT_ID=LitmusPortalAuthBackend DEX_OAUTH_CLIENT_SECRET=ZXhhbXBsZS1hcHAtc2VjcmV0
117119
```
118120

119-
Your litmusportal-server pod will be restarted and Dex features will be enabled!
121+
Your chaos-litmus-auth-server pod(s) will be restarted and Dex features will be enabled!
120122

121123
### Verifying if OAuth2 is enabled
122124

0 commit comments

Comments
 (0)