]>
Commit | Line | Data |
---|---|---|
9107d791 C |
1 | async function register ({ |
2 | registerExternalAuth, | |
3 | peertubeHelpers | |
4 | }) { | |
5 | { | |
6 | const result = registerExternalAuth({ | |
7 | authName: 'external-auth-3', | |
8 | authDisplayName: 'External Auth 3', | |
9 | onAuthRequest: (req, res) => { | |
10 | result.userAuthenticated({ | |
11 | req, | |
12 | res, | |
13 | username: 'cid', | |
14 | email: 'cid@example.com', | |
15 | displayName: 'Cid Marquez' | |
16 | }) | |
17 | } | |
18 | }) | |
19 | } | |
20 | } | |
21 | ||
22 | async function unregister () { | |
23 | return | |
24 | } | |
25 | ||
26 | module.exports = { | |
27 | register, | |
28 | unregister | |
29 | } | |
30 | ||
31 | // ########################################################################### |