aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-23 11:36:50 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-05-04 16:21:39 +0200
commite1c5503114deef954731904695cd40dccfcef555 (patch)
tree72cec4ee691a3362a7d024dc830d215a6b2c800a /shared/models/plugins
parent8dc8a34ee8428e7657414115d1c137592efa174d (diff)
downloadPeerTube-e1c5503114deef954731904695cd40dccfcef555.tar.gz
PeerTube-e1c5503114deef954731904695cd40dccfcef555.tar.zst
PeerTube-e1c5503114deef954731904695cd40dccfcef555.zip
Support logout and add id and pass tests
Diffstat (limited to 'shared/models/plugins')
-rw-r--r--shared/models/plugins/register-server-auth.model.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/shared/models/plugins/register-server-auth.model.ts b/shared/models/plugins/register-server-auth.model.ts
index 34ebbe712..dc46dcbc8 100644
--- a/shared/models/plugins/register-server-auth.model.ts
+++ b/shared/models/plugins/register-server-auth.model.ts
@@ -3,10 +3,12 @@ import { UserRole } from '@shared/models'
3export type RegisterServerAuthOptions = RegisterServerAuthPassOptions | RegisterServerAuthExternalOptions 3export type RegisterServerAuthOptions = RegisterServerAuthPassOptions | RegisterServerAuthExternalOptions
4 4
5export interface RegisterServerAuthPassOptions { 5export interface RegisterServerAuthPassOptions {
6 type: 'id-and-pass' 6 // Authentication name (a plugin can register multiple auth strategies)
7 authName: string
7 8
8 onLogout?: Function 9 onLogout?: Function
9 10
11 // Weight of this authentication so PeerTube tries the auth methods in DESC weight order
10 getWeight(): number 12 getWeight(): number
11 13
12 // Used by PeerTube to login a user 14 // Used by PeerTube to login a user
@@ -23,7 +25,8 @@ export interface RegisterServerAuthPassOptions {
23} 25}
24 26
25export interface RegisterServerAuthExternalOptions { 27export interface RegisterServerAuthExternalOptions {
26 type: 'external' 28 // Authentication name (a plugin can register multiple auth strategies)
29 authName: string
27 30
28 onLogout?: Function 31 onLogout?: Function
29} 32}