diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-28 14:49:03 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-05-04 16:21:39 +0200 |
commit | 4a8d113b9b57d97ff13ad1608798eabca99643e4 (patch) | |
tree | 7c6e1ba86bff31680ba6c8ba4bd903b997592269 /shared/models/server/server-config.model.ts | |
parent | 98813e69bccc568eff771cfcaf907ccdd82ce3f1 (diff) | |
download | PeerTube-4a8d113b9b57d97ff13ad1608798eabca99643e4.tar.gz PeerTube-4a8d113b9b57d97ff13ad1608798eabca99643e4.tar.zst PeerTube-4a8d113b9b57d97ff13ad1608798eabca99643e4.zip |
Begin support for external auths
Diffstat (limited to 'shared/models/server/server-config.model.ts')
-rw-r--r-- | shared/models/server/server-config.model.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index c3976a346..0ff079216 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -12,6 +12,18 @@ export interface ServerConfigTheme extends ServerConfigPlugin { | |||
12 | css: string[] | 12 | css: string[] |
13 | } | 13 | } |
14 | 14 | ||
15 | export interface RegisteredExternalAuthConfig { | ||
16 | npmName: string | ||
17 | authName: string | ||
18 | authDisplayName: string | ||
19 | } | ||
20 | |||
21 | export interface RegisteredIdAndPassAuthConfig { | ||
22 | npmName: string | ||
23 | authName: string | ||
24 | weight: number | ||
25 | } | ||
26 | |||
15 | export interface ServerConfig { | 27 | export interface ServerConfig { |
16 | serverVersion: string | 28 | serverVersion: string |
17 | serverCommit?: string | 29 | serverCommit?: string |
@@ -37,6 +49,10 @@ export interface ServerConfig { | |||
37 | 49 | ||
38 | plugin: { | 50 | plugin: { |
39 | registered: ServerConfigPlugin[] | 51 | registered: ServerConfigPlugin[] |
52 | |||
53 | registeredExternalAuths: RegisteredExternalAuthConfig[] | ||
54 | |||
55 | registeredIdAndPassAuths: RegisteredIdAndPassAuthConfig[] | ||
40 | } | 56 | } |
41 | 57 | ||
42 | theme: { | 58 | theme: { |