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 /server/typings/express.ts | |
parent | 98813e69bccc568eff771cfcaf907ccdd82ce3f1 (diff) | |
download | PeerTube-4a8d113b9b57d97ff13ad1608798eabca99643e4.tar.gz PeerTube-4a8d113b9b57d97ff13ad1608798eabca99643e4.tar.zst PeerTube-4a8d113b9b57d97ff13ad1608798eabca99643e4.zip |
Begin support for external auths
Diffstat (limited to 'server/typings/express.ts')
-rw-r--r-- | server/typings/express.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/typings/express.ts b/server/typings/express.ts index e6e120403..5973496f1 100644 --- a/server/typings/express.ts +++ b/server/typings/express.ts | |||
@@ -29,6 +29,7 @@ import { MPlugin, MServer } from '@server/typings/models/server' | |||
29 | import { MServerBlocklist } from './models/server/server-blocklist' | 29 | import { MServerBlocklist } from './models/server/server-blocklist' |
30 | import { MOAuthTokenUser } from '@server/typings/models/oauth/oauth-token' | 30 | import { MOAuthTokenUser } from '@server/typings/models/oauth/oauth-token' |
31 | import { UserRole } from '@shared/models' | 31 | import { UserRole } from '@shared/models' |
32 | import { RegisterServerAuthExternalOptions } from '@shared/models/plugins/register-server-auth.model' | ||
32 | 33 | ||
33 | declare module 'express' { | 34 | declare module 'express' { |
34 | interface Response { | 35 | interface Response { |
@@ -115,6 +116,8 @@ declare module 'express' { | |||
115 | 116 | ||
116 | registeredPlugin?: RegisteredPlugin | 117 | registeredPlugin?: RegisteredPlugin |
117 | 118 | ||
119 | externalAuth?: RegisterServerAuthExternalOptions | ||
120 | |||
118 | plugin?: MPlugin | 121 | plugin?: MPlugin |
119 | } | 122 | } |
120 | } | 123 | } |