Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b091f99

Browse files
authored
Merge pull request #137 from topcoder-platform/issue-136
Fix security issue by adding JWT validation
2 parents a76b51c + 24008bb commit b091f99

File tree

5 files changed

+939
-45
lines changed

5 files changed

+939
-45
lines changed

configuration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ The following config parameters are supported, they are defined in `src/config.j
2828
|COPILOT_ROLE| The role to identify copilot|'copilot'|
2929
|HELP_LINK| The link for help| 'https://github.com/topcoder-platform/topcoder-x-ui/wiki'|
3030
|ADMINISTRATOR_ROLES| The array of roles to be considered as admin| `['administrator', 'admin']`|
31+
|TOPCODER_AUTH_SECRET| The auth secret used to sign the JWT| No default - needs to be set up|
32+
|TOPCODER_VALID_ISSUERS| Stringified array of valid JWT issuers| `'["topcoder-dev.com"]'`|
33+
|TOPCODER_JWT_KEY_CACHE_TIME| They JWT cache time | 90 |
3134

3235
## GitHub OAuth App Setup
3336

0 commit comments

Comments
 (0)