Skip to content

Commit 87fc5ab

Browse files
tgwizardgjtorikian
andauthored
fix: list Slack as an auth provider for the authorization URL (#633)
Co-authored-by: Garen J. Torikian <gjtorikian@users.noreply.github.com>
1 parent 6fdc448 commit 87fc5ab

2 files changed

Lines changed: 50 additions & 4 deletions

File tree

src/workos/sso/models/sso_provider.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,19 @@ class SSOProvider(str, Enum):
1313
"""Known values for SSOProvider."""
1414

1515
APPLE_OAUTH = "AppleOAuth"
16+
BITBUCKET_OAUTH = "BitbucketOAuth"
17+
DISCORD_OAUTH = "DiscordOAuth"
1618
GIT_HUB_OAUTH = "GitHubOAuth"
19+
GIT_LAB_OAUTH = "GitLabOAuth"
1720
GOOGLE_OAUTH = "GoogleOAuth"
21+
INTUIT_OAUTH = "IntuitOAuth"
22+
LINKED_IN_OAUTH = "LinkedInOAuth"
1823
MICROSOFT_OAUTH = "MicrosoftOAuth"
24+
SALESFORCE_OAUTH = "SalesforceOAuth"
25+
SLACK_OAUTH = "SlackOAuth"
26+
VERCEL_MARKETPLACE_OAUTH = "VercelMarketplaceOAuth"
27+
VERCEL_OAUTH = "VercelOAuth"
28+
XERO_OAUTH = "XeroOAuth"
1929

2030
@classmethod
2131
def _missing_(cls, value: object) -> Optional["SSOProvider"]:
@@ -28,5 +38,18 @@ def _missing_(cls, value: object) -> Optional["SSOProvider"]:
2838

2939

3040
SSOProviderLiteral: TypeAlias = Literal[
31-
"AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"
41+
"AppleOAuth",
42+
"BitbucketOAuth",
43+
"DiscordOAuth",
44+
"GitHubOAuth",
45+
"GitLabOAuth",
46+
"GoogleOAuth",
47+
"IntuitOAuth",
48+
"LinkedInOAuth",
49+
"MicrosoftOAuth",
50+
"SalesforceOAuth",
51+
"SlackOAuth",
52+
"VercelMarketplaceOAuth",
53+
"VercelOAuth",
54+
"XeroOAuth",
3255
]

src/workos/user_management/models/user_management_authentication_provider.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,27 @@
55
from __future__ import annotations
66

77
from enum import Enum
8-
from typing import Optional
9-
from typing import Literal, TypeAlias
8+
from typing import Literal, Optional, TypeAlias
109

1110

1211
class UserManagementAuthenticationProvider(str, Enum):
1312
"""Known values for UserManagementAuthenticationProvider."""
1413

1514
AUTHKIT = "authkit"
1615
APPLE_OAUTH = "AppleOAuth"
16+
BITBUCKET_OAUTH = "BitbucketOAuth"
17+
DISCORD_OAUTH = "DiscordOAuth"
1718
GIT_HUB_OAUTH = "GitHubOAuth"
19+
GIT_LAB_OAUTH = "GitLabOAuth"
1820
GOOGLE_OAUTH = "GoogleOAuth"
21+
INTUIT_OAUTH = "IntuitOAuth"
22+
LINKED_IN_OAUTH = "LinkedInOAuth"
1923
MICROSOFT_OAUTH = "MicrosoftOAuth"
24+
SALESFORCE_OAUTH = "SalesforceOAuth"
25+
SLACK_OAUTH = "SlackOAuth"
26+
VERCEL_MARKETPLACE_OAUTH = "VercelMarketplaceOAuth"
27+
VERCEL_OAUTH = "VercelOAuth"
28+
XERO_OAUTH = "XeroOAuth"
2029

2130
@classmethod
2231
def _missing_(
@@ -31,5 +40,19 @@ def _missing_(
3140

3241

3342
UserManagementAuthenticationProviderLiteral: TypeAlias = Literal[
34-
"authkit", "AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"
43+
"authkit",
44+
"AppleOAuth",
45+
"BitbucketOAuth",
46+
"DiscordOAuth",
47+
"GitHubOAuth",
48+
"GitLabOAuth",
49+
"GoogleOAuth",
50+
"IntuitOAuth",
51+
"LinkedInOAuth",
52+
"MicrosoftOAuth",
53+
"SalesforceOAuth",
54+
"SlackOAuth",
55+
"VercelMarketplaceOAuth",
56+
"VercelOAuth",
57+
"XeroOAuth",
3558
]

0 commit comments

Comments
 (0)