aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/register-server-auth.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/plugins/register-server-auth.model.ts')
-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}