From 4938d308b035333c44ad2a9a871e1d3bcc5ada0b Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 8 Aug 2021 21:57:22 +0200 Subject: [PATCH] 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 --- src/identity/provider-type.enum.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/identity/provider-type.enum.ts diff --git a/src/identity/provider-type.enum.ts b/src/identity/provider-type.enum.ts new file mode 100644 index 000000000..d2032c70c --- /dev/null +++ b/src/identity/provider-type.enum.ts @@ -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', +}