From 5eb694cba75b87776321b1d05e1ed6b5be9e2894 Mon Sep 17 00:00:00 2001 From: James Clarke Date: Wed, 24 Jan 2024 21:50:57 +0000 Subject: [PATCH] Add support for Slack OAuth provider --- shared/studio/tabs/auth/icons.tsx | 46 +++++++++++++++++++++++++ shared/studio/tabs/auth/state/index.tsx | 9 ++++- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/shared/studio/tabs/auth/icons.tsx b/shared/studio/tabs/auth/icons.tsx index f61774a1..d8408b7d 100644 --- a/shared/studio/tabs/auth/icons.tsx +++ b/shared/studio/tabs/auth/icons.tsx @@ -170,3 +170,49 @@ export function GoogleIcon() { ); } + +export function SlackIcon() { + return ( + + + + + + + + + + + ); +} diff --git a/shared/studio/tabs/auth/state/index.tsx b/shared/studio/tabs/auth/state/index.tsx index 3b62d81a..43d033c3 100644 --- a/shared/studio/tabs/auth/state/index.tsx +++ b/shared/studio/tabs/auth/state/index.tsx @@ -15,6 +15,7 @@ import { DiscordIcon, GithubIcon, GoogleIcon, + SlackIcon, } from "../icons"; export interface AuthConfigData { @@ -30,7 +31,8 @@ export type OAuthProviderData = { | "ext::auth::AzureOAuthProvider" | "ext::auth::DiscordOAuthProvider" | "ext::auth::GitHubOAuthProvider" - | "ext::auth::GoogleOAuthProvider"; + | "ext::auth::GoogleOAuthProvider" + | "ext::auth::SlackOAuthProvider"; client_id: string; additional_scope: string; }; @@ -108,6 +110,11 @@ export const _providersInfo: { displayName: "Google", icon: , }, + "ext::auth::SlackOAuthProvider": { + kind: "OAuth", + displayName: "Slack", + icon: , + }, // local "ext::auth::EmailPasswordProviderConfig": { kind: "Local",