aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-external-auth-one
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-30 09:28:39 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-05-04 16:21:39 +0200
commita5896799f169d3313b63165fe6a79d4149fa6df1 (patch)
tree0151902e829dce13bbb22ff0fe6967ce6bee4058 /server/tests/fixtures/peertube-plugin-test-external-auth-one
parentdadc90bca257f2d785713a37949c3a1bf6a5243d (diff)
downloadPeerTube-a5896799f169d3313b63165fe6a79d4149fa6df1.tar.gz
PeerTube-a5896799f169d3313b63165fe6a79d4149fa6df1.tar.zst
PeerTube-a5896799f169d3313b63165fe6a79d4149fa6df1.zip
Add plugin settings change watcher
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-external-auth-one')
-rw-r--r--server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js b/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js
index f29fd1f30..91c67e550 100644
--- a/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js
+++ b/server/tests/fixtures/peertube-plugin-test-external-auth-one/main.js
@@ -5,7 +5,7 @@ async function register ({
5 { 5 {
6 const result = registerExternalAuth({ 6 const result = registerExternalAuth({
7 authName: 'external-auth-1', 7 authName: 'external-auth-1',
8 authDisplayName: 'External Auth 1', 8 authDisplayName: () => 'External Auth 1',
9 onLogout: user => peertubeHelpers.logger.info('On logout %s', user.username), 9 onLogout: user => peertubeHelpers.logger.info('On logout %s', user.username),
10 onAuthRequest: (req, res) => { 10 onAuthRequest: (req, res) => {
11 const username = req.query.username 11 const username = req.query.username
@@ -23,7 +23,7 @@ async function register ({
23 { 23 {
24 const result = registerExternalAuth({ 24 const result = registerExternalAuth({
25 authName: 'external-auth-2', 25 authName: 'external-auth-2',
26 authDisplayName: 'External Auth 2', 26 authDisplayName: () => 'External Auth 2',
27 onAuthRequest: (req, res) => { 27 onAuthRequest: (req, res) => {
28 result.userAuthenticated({ 28 result.userAuthenticated({
29 req, 29 req,