Skip to content

Commit 3135c06

Browse files
committed
Add redis authentication
1 parent d47cac1 commit 3135c06

File tree

3 files changed

+16
-61
lines changed

3 files changed

+16
-61
lines changed

package-lock.json

Lines changed: 12 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fails-components/ltihandler",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "Supplies server side lti handling",
55
"author": "Marten Richter",
66
"license": "AGPL-3.0-or-later",
@@ -43,7 +43,7 @@
4343
"dist"
4444
],
4545
"dependencies": {
46-
"@fails-components/config": ">=0.0.3",
46+
"@fails-components/config": ">=0.0.5",
4747
"@fails-components/security": "0.0.2",
4848
"express": "^4.17.1",
4949
"express-jwt": "^6.1.0",

src/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ import { LtiHandler } from './ltihandler.js'
2929
const initServer = async () => {
3030
const cfg = new FailsConfig()
3131
const redisclient = redis.createClient(cfg.redisPort(), cfg.redisHost(), {
32-
detect_buffers: true /* required by notescreen connection */
32+
detect_buffers: true /* required by notescreen connection */,
33+
password: cfg.redisPass()
3334
})
3435

3536
const mongoclient = await MongoClient.connect(cfg.getMongoURL(), {

0 commit comments

Comments
 (0)