You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/faq.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,4 +84,4 @@ Once GitOps is enabled, any new workflows created will be stored in the configur
84
84
85
85
### How to solve `invalid token` issue in litmusctl?
86
86
87
-
You can use the command `litmusctl config set-account` to generate a new token. You get `invalid token` error if the authorization token is expired. Authorization token has a life span of 24 hours.
87
+
You can use the command `litmusctl config set-account` to generate a new token. You get `invalid token` error if the authorization token is expired. Authorization token has a life span of 24 hours.
- 'http://localhost:8080/auth/dex/callback'# Included for local testing purposes
61
+
- 'https://<REPLACE_FRONTEND_URL>/auth/dex/calllback'#TODO: Replace with you frontend URL
61
62
name: 'LitmusPortalAuthBackend'
62
63
secret: ZXhhbXBsZS1hcHAtc2VjcmV0
63
64
oauth2:
@@ -108,25 +109,53 @@ mongo-0 1/1 Running 0
108
109
109
110
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
110
111
111
-
- `OIDC_ISSUER`: The place where the Dex OIDC lives, i.e `NODE_IP:32000`
112
+
- `OIDC_ISSUER`: The place where the Dex OIDC is hosted, i.e `NODE_IP:32000` or `https://dex.yourdomain.com`
112
113
- `DEX_ENABLED`: This variable enables dex features in the litmusportal-server
113
-
- `CALLBACK_URL`: This is the url that will be called back after user completes thier OAuth, this will be the litmusportal-frontend service
114
+
- `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
114
115
115
116
Set your variables using
116
117
117
118
```bash
118
-
kubectl set env deployment/litmusportal-server -n litmus --containers="auth-server" DEX_SERVER="true", OIDC_ISSUER=<REPLACE_NODE_IP>:32000, CALLBACK_URL=<REPLACE_litmusportal_frontend_Service>
119
+
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
119
120
```
120
121
Your litmusportal-server pod will be restarted and Dex features will be enabled!
121
122
122
123
### Verifying if OAuth2 is enabled
123
124
125
+
Run the following command to check the env variables of the `auth-server`
0 commit comments