2022-11-01 03:17:10 +08:00
|
|
|
import SelfHostedOptions from "@/components/settings/providers/SelfHostedOptions.svelte";
|
|
|
|
import MicrosoftOptions from "@/components/settings/providers/MicrosoftOptions.svelte";
|
2023-03-02 05:29:45 +08:00
|
|
|
import OIDCOptions from "@/components/settings/providers/OIDCOptions.svelte";
|
|
|
|
import AppleOptions from "@/components/settings/providers/AppleOptions.svelte";
|
2022-11-01 03:17:10 +08:00
|
|
|
|
2022-09-01 20:49:00 +08:00
|
|
|
// Object list with all supported OAuth2 providers in the format:
|
|
|
|
// ```
|
2023-04-13 20:38:12 +08:00
|
|
|
// [ { key, title, logo, optionsComponent? }, ... ]
|
2022-09-01 20:49:00 +08:00
|
|
|
// ```
|
2022-11-01 03:17:10 +08:00
|
|
|
//
|
2023-04-14 18:32:59 +08:00
|
|
|
// The logo images must be placed inside the /public/images/oauth2 directory.
|
|
|
|
//
|
2022-11-01 03:17:10 +08:00
|
|
|
// 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
|
2023-04-13 20:38:12 +08:00
|
|
|
export default [
|
|
|
|
{
|
|
|
|
key: "appleAuth",
|
2023-03-02 05:29:45 +08:00
|
|
|
title: "Apple",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "apple.svg",
|
2023-03-02 05:29:45 +08:00
|
|
|
optionsComponent: AppleOptions,
|
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "googleAuth",
|
2022-09-01 20:49:00 +08:00
|
|
|
title: "Google",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "google.svg",
|
2022-09-01 20:49:00 +08:00
|
|
|
},
|
2023-05-24 03:37:44 +08:00
|
|
|
{
|
|
|
|
key: "microsoftAuth",
|
|
|
|
title: "Microsoft",
|
|
|
|
logo: "microsoft.svg",
|
|
|
|
optionsComponent: MicrosoftOptions,
|
|
|
|
},
|
2023-06-23 19:13:43 +08:00
|
|
|
{
|
|
|
|
key: "yandexAuth",
|
|
|
|
title: "Yandex",
|
|
|
|
logo: "yandex.svg",
|
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "facebookAuth",
|
2022-09-01 20:49:00 +08:00
|
|
|
title: "Facebook",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "facebook.svg",
|
2022-09-01 20:49:00 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
2023-05-24 03:37:44 +08:00
|
|
|
key: "instagramAuth",
|
|
|
|
title: "Instagram",
|
|
|
|
logo: "instagram.svg",
|
2022-09-01 20:49:00 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "githubAuth",
|
2022-09-01 20:49:00 +08:00
|
|
|
title: "GitHub",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "github.svg",
|
2022-09-01 20:49:00 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "gitlabAuth",
|
2022-11-01 03:17:10 +08:00
|
|
|
title: "GitLab",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "gitlab.svg",
|
2022-11-01 03:17:10 +08:00
|
|
|
optionsComponent: SelfHostedOptions,
|
2022-09-01 20:49:00 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "giteeAuth",
|
2023-03-02 05:29:45 +08:00
|
|
|
title: "Gitee",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "gitee.svg",
|
2023-03-02 05:29:45 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "giteaAuth",
|
2023-03-02 05:29:45 +08:00
|
|
|
title: "Gitea",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "gitea.svg",
|
2023-03-02 05:29:45 +08:00
|
|
|
optionsComponent: SelfHostedOptions,
|
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "discordAuth",
|
2022-09-01 20:49:00 +08:00
|
|
|
title: "Discord",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "discord.svg",
|
2023-04-13 20:38:12 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "twitterAuth",
|
|
|
|
title: "Twitter",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "twitter.svg",
|
2022-09-01 20:49:00 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "kakaoAuth",
|
2023-03-02 05:29:45 +08:00
|
|
|
title: "Kakao",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "kakao.svg",
|
2022-11-01 03:17:10 +08:00
|
|
|
},
|
2023-05-24 20:34:25 +08:00
|
|
|
{
|
|
|
|
key: "vkAuth",
|
|
|
|
title: "VK",
|
|
|
|
logo: "vk.svg"
|
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "spotifyAuth",
|
2022-11-01 23:06:06 +08:00
|
|
|
title: "Spotify",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "spotify.svg",
|
2022-11-01 23:06:06 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "twitchAuth",
|
2022-11-13 20:20:11 +08:00
|
|
|
title: "Twitch",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "twitch.svg",
|
2022-11-13 20:20:11 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "stravaAuth",
|
2022-12-31 08:21:41 +08:00
|
|
|
title: "Strava",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "strava.svg",
|
2022-12-31 08:21:41 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "livechatAuth",
|
2023-01-13 04:12:34 +08:00
|
|
|
title: "LiveChat",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "livechat.svg",
|
2023-01-13 04:12:34 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "oidcAuth",
|
|
|
|
title: "OpenID Connect",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "oidc.svg",
|
2023-02-24 03:07:00 +08:00
|
|
|
optionsComponent: OIDCOptions,
|
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "oidc2Auth",
|
|
|
|
title: "(2) OpenID Connect",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "oidc.svg",
|
2023-02-24 03:07:00 +08:00
|
|
|
optionsComponent: OIDCOptions,
|
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
{
|
|
|
|
key: "oidc3Auth",
|
|
|
|
title: "(3) OpenID Connect",
|
2023-04-14 18:32:59 +08:00
|
|
|
logo: "oidc.svg",
|
2023-02-24 03:07:00 +08:00
|
|
|
optionsComponent: OIDCOptions,
|
2023-01-16 17:47:08 +08:00
|
|
|
},
|
2023-04-13 20:38:12 +08:00
|
|
|
];
|