mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 16:50:49 +00:00
feat: add ProviderType enum
This is used to give identities a type and to easily get the identity any auth method would need. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
d5ff09349d
commit
cf8f3b39ec
1 changed files with 18 additions and 0 deletions
18
src/identity/provider-type.enum.ts
Normal file
18
src/identity/provider-type.enum.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export enum ProviderType {
|
||||
LOCAL = 'local',
|
||||
LDAP = 'ldap',
|
||||
SAML = 'saml',
|
||||
OAUTH2 = 'oauth2',
|
||||
GITLAB = 'gitlab',
|
||||
GITHUB = 'github',
|
||||
FACEBOOK = 'facebook',
|
||||
TWITTER = 'twitter',
|
||||
DROPBOX = 'dropbox',
|
||||
GOOGLE = 'google',
|
||||
}
|
Loading…
Reference in a new issue