[#746] added microsoft oauth2 provider

This commit is contained in:
Gani Georgiev committed 2022-10-31 21:18:00 +02:00
1 parent bcb9c22685
commit 5298543ce4
41 files changed
+279 -141

No files matched your search

+16 -4
View File
@@ -1,7 +1,14 @@
import SelfHostedOptions from "@/components/settings/providers/SelfHostedOptions.svelte";
import MicrosoftOptions from "@/components/settings/providers/MicrosoftOptions.svelte";
// Object list with all supported OAuth2 providers in the format:
// ```
// { settingsKey: { title, icon, selfHosted } }
// { settingsKey: { title, icon, optionsComponent? } }
// ```
//
// If `optionsComponent` is provided it will receive 2 parameters:
// - `key` - the provider settings key (eg. "gitlabAuth")
// - `config` - the provider settings config that is currently being updated
export default {
googleAuth: {
title: "Google",
@@ -20,12 +27,17 @@ export default {
icon: "ri-github-fill",
},
gitlabAuth: {
title: "GitLab",
icon: "ri-gitlab-fill",
selfHosted: true,
title: "GitLab",
icon: "ri-gitlab-fill",
optionsComponent: SelfHostedOptions,
},
discordAuth: {
title: "Discord",
icon: "ri-discord-fill",
},
microsoftAuth: {
title: "Microsoft",
icon: "ri-microsoft-fill",
optionsComponent: MicrosoftOptions,
},
};