Skip to content

Commit 7fb17c6

Browse files
committed
Added instructions to change the secretKey
1 parent 066947f commit 7fb17c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ sbt run
1212
# Authentication
1313

1414
The remote Scala eval uses [JWT](https://jwt.io/) to encode / decode tokens.
15+
The `secretKey` used for encoding/decoding is configurable as part of the service configuration in
16+
`src/main/resources/application.conf`.
17+
18+
Please change `secretKey` by overriding it or providing the `EVAL_SECRET_KEY` env var.
19+
20+
```json
21+
eval.auth {
22+
secretKey = "secretKey"
23+
secretKey = ${?EVAL_SECRET_KEY}
24+
}
25+
```
1526

1627
## Generate an auth token
1728

0 commit comments

Comments
 (0)