Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion src/workos/sso/models/sso_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,19 @@ class SSOProvider(str, Enum):
"""Known values for SSOProvider."""

APPLE_OAUTH = "AppleOAuth"
BITBUCKET_OAUTH = "BitbucketOAuth"
DISCORD_OAUTH = "DiscordOAuth"
GIT_HUB_OAUTH = "GitHubOAuth"
GIT_LAB_OAUTH = "GitLabOAuth"
GOOGLE_OAUTH = "GoogleOAuth"
INTUIT_OAUTH = "IntuitOAuth"
LINKED_IN_OAUTH = "LinkedInOAuth"
MICROSOFT_OAUTH = "MicrosoftOAuth"
SALESFORCE_OAUTH = "SalesforceOAuth"
SLACK_OAUTH = "SlackOAuth"
VERCEL_MARKETPLACE_OAUTH = "VercelMarketplaceOAuth"
VERCEL_OAUTH = "VercelOAuth"
XERO_OAUTH = "XeroOAuth"

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


SSOProviderLiteral: TypeAlias = Literal[
"AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"
"AppleOAuth",
"BitbucketOAuth",
"DiscordOAuth",
"GitHubOAuth",
"GitLabOAuth",
"GoogleOAuth",
"IntuitOAuth",
"LinkedInOAuth",
"MicrosoftOAuth",
"SalesforceOAuth",
"SlackOAuth",
"VercelMarketplaceOAuth",
"VercelOAuth",
"XeroOAuth",
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,27 @@
from __future__ import annotations

from enum import Enum
from typing import Optional
from typing import Literal, TypeAlias
from typing import Literal, Optional, TypeAlias


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

AUTHKIT = "authkit"
APPLE_OAUTH = "AppleOAuth"
BITBUCKET_OAUTH = "BitbucketOAuth"
DISCORD_OAUTH = "DiscordOAuth"
GIT_HUB_OAUTH = "GitHubOAuth"
GIT_LAB_OAUTH = "GitLabOAuth"
GOOGLE_OAUTH = "GoogleOAuth"
INTUIT_OAUTH = "IntuitOAuth"
LINKED_IN_OAUTH = "LinkedInOAuth"
MICROSOFT_OAUTH = "MicrosoftOAuth"
SALESFORCE_OAUTH = "SalesforceOAuth"
SLACK_OAUTH = "SlackOAuth"
VERCEL_MARKETPLACE_OAUTH = "VercelMarketplaceOAuth"
VERCEL_OAUTH = "VercelOAuth"
XERO_OAUTH = "XeroOAuth"

@classmethod
def _missing_(
Expand All @@ -31,5 +40,19 @@ def _missing_(


UserManagementAuthenticationProviderLiteral: TypeAlias = Literal[
"authkit", "AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"
"authkit",
"AppleOAuth",
"BitbucketOAuth",
"DiscordOAuth",
"GitHubOAuth",
"GitLabOAuth",
"GoogleOAuth",
"IntuitOAuth",
"LinkedInOAuth",
"MicrosoftOAuth",
"SalesforceOAuth",
"SlackOAuth",
"VercelMarketplaceOAuth",
"VercelOAuth",
"XeroOAuth",
]
Loading