From 6af819537832a9b147a2ba447aa130257856bdc8 Mon Sep 17 00:00:00 2001 From: Giovanni Carvelli Date: Tue, 11 Jun 2024 16:20:51 -0400 Subject: [PATCH 1/2] Add AppleOAuth (and missing GithubOAuth) constants --- workos/user_management.py | 2 +- workos/utils/connection_types.py | 2 ++ workos/utils/sso_provider_types.py | 1 + workos/utils/um_provider_types.py | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/workos/user_management.py b/workos/user_management.py index 73760ba7..81145586 100644 --- a/workos/user_management.py +++ b/workos/user_management.py @@ -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, diff --git a/workos/utils/connection_types.py b/workos/utils/connection_types.py index 827c6c86..105b25b9 100644 --- a/workos/utils/connection_types.py +++ b/workos/utils/connection_types.py @@ -4,6 +4,7 @@ class ConnectionType(Enum): ADFSSAML = "ADFSSAML" AdpOidc = "AdpOidc" + AppleOAuth = "AppleOAuth" Auth0SAML = "Auth0SAML" AzureSAML = "AzureSAML" CasSAML = "CasSAML" @@ -13,6 +14,7 @@ class ConnectionType(Enum): DuoSAML = "DuoSAML" GenericOIDC = "GenericOIDC" GenericSAML = "GenericSAML" + GithubOAuth = "GithubOAuth" GoogleOAuth = "GoogleOAuth" GoogleSAML = "GoogleSAML" JumpCloudSAML = "JumpCloudSAML" diff --git a/workos/utils/sso_provider_types.py b/workos/utils/sso_provider_types.py index 31dc10d0..1be0120d 100644 --- a/workos/utils/sso_provider_types.py +++ b/workos/utils/sso_provider_types.py @@ -2,6 +2,7 @@ class SsoProviderType(Enum): + AppleOAuth = "AppleOAuth" GitHubOAuth = "GitHubOAuth" GoogleOAuth = "GoogleOAuth" MicrosoftOAuth = "MicrosoftOAuth" diff --git a/workos/utils/um_provider_types.py b/workos/utils/um_provider_types.py index 9d42f14d..01532ddb 100644 --- a/workos/utils/um_provider_types.py +++ b/workos/utils/um_provider_types.py @@ -3,6 +3,7 @@ class UserManagementProviderType(Enum): AuthKit = "authkit" + AppleOAuth = "AppleOAuth" GitHubOAuth = "GitHubOAuth" GoogleOAuth = "GoogleOAuth" MicrosoftOAuth = "MicrosoftOAuth" From 45ac22697400f0c72e874c1ad5cec915c97adf34 Mon Sep 17 00:00:00 2001 From: Giovanni Carvelli Date: Tue, 11 Jun 2024 16:28:44 -0400 Subject: [PATCH 2/2] Hub --- workos/user_management.py | 2 +- workos/utils/connection_types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/workos/user_management.py b/workos/user_management.py index 81145586..861718ed 100644 --- a/workos/user_management.py +++ b/workos/user_management.py @@ -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', 'AppleOAuth', 'GithubOAuth, '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, diff --git a/workos/utils/connection_types.py b/workos/utils/connection_types.py index 105b25b9..32e1ef20 100644 --- a/workos/utils/connection_types.py +++ b/workos/utils/connection_types.py @@ -14,7 +14,7 @@ class ConnectionType(Enum): DuoSAML = "DuoSAML" GenericOIDC = "GenericOIDC" GenericSAML = "GenericSAML" - GithubOAuth = "GithubOAuth" + GitHubOAuth = "GitHubOAuth" GoogleOAuth = "GoogleOAuth" GoogleSAML = "GoogleSAML" JumpCloudSAML = "JumpCloudSAML"