Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AppleOAuth and GitHubOAuth constants #277

Merged
merged 4 commits into from
Jul 22, 2024
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
2 changes: 1 addition & 1 deletion workos/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def get_authorization_url(
organization_id (str) - The organization_id connection selector is used to initiate SSO for an Organization.
The value of this parameter should be a WorkOS Organization ID. (Optional)
provider (UserManagementProviderType) - The provider connection selector is used to initiate SSO using an OAuth-compatible provider.
Currently, the supported values for provider are 'authkit', 'GoogleOAuth' and 'MicrosoftOAuth'. (Optional)
Currently, the supported values for provider are 'authkit', 'AppleOAuth', 'GitHubOAuth, 'GoogleOAuth', and 'MicrosoftOAuth'. (Optional)
domain_hint (str) - Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth,
or with a GoogleSAML connection type. (Optional)
login_hint (str) - Can be used to pre-fill the username/email address field of the IdP sign-in page for the user,
Expand Down
2 changes: 2 additions & 0 deletions workos/utils/connection_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
class ConnectionType(Enum):
ADFSSAML = "ADFSSAML"
AdpOidc = "AdpOidc"
AppleOAuth = "AppleOAuth"
Auth0SAML = "Auth0SAML"
AzureSAML = "AzureSAML"
CasSAML = "CasSAML"
Expand All @@ -13,6 +14,7 @@ class ConnectionType(Enum):
DuoSAML = "DuoSAML"
GenericOIDC = "GenericOIDC"
GenericSAML = "GenericSAML"
GitHubOAuth = "GitHubOAuth"
GoogleOAuth = "GoogleOAuth"
GoogleSAML = "GoogleSAML"
JumpCloudSAML = "JumpCloudSAML"
Expand Down
1 change: 1 addition & 0 deletions workos/utils/sso_provider_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


class SsoProviderType(Enum):
AppleOAuth = "AppleOAuth"
GitHubOAuth = "GitHubOAuth"
GoogleOAuth = "GoogleOAuth"
MicrosoftOAuth = "MicrosoftOAuth"
1 change: 1 addition & 0 deletions workos/utils/um_provider_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class UserManagementProviderType(Enum):
AuthKit = "authkit"
AppleOAuth = "AppleOAuth"
GitHubOAuth = "GitHubOAuth"
GoogleOAuth = "GoogleOAuth"
MicrosoftOAuth = "MicrosoftOAuth"
Loading