Skip to content

Commit 6fd2bfc

Browse files
authored
Add AppleOAuth and GitHubOAuth constants (#277)
* Add AppleOAuth (and missing GithubOAuth) constants * Hub
1 parent 73575bd commit 6fd2bfc

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

workos/user_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def get_authorization_url(
437437
organization_id (str) - The organization_id connection selector is used to initiate SSO for an Organization.
438438
The value of this parameter should be a WorkOS Organization ID. (Optional)
439439
provider (UserManagementProviderType) - The provider connection selector is used to initiate SSO using an OAuth-compatible provider.
440-
Currently, the supported values for provider are 'authkit', 'GoogleOAuth' and 'MicrosoftOAuth'. (Optional)
440+
Currently, the supported values for provider are 'authkit', 'AppleOAuth', 'GitHubOAuth, 'GoogleOAuth', and 'MicrosoftOAuth'. (Optional)
441441
domain_hint (str) - Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth,
442442
or with a GoogleSAML connection type. (Optional)
443443
login_hint (str) - Can be used to pre-fill the username/email address field of the IdP sign-in page for the user,

workos/utils/connection_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
class ConnectionType(Enum):
55
ADFSSAML = "ADFSSAML"
66
AdpOidc = "AdpOidc"
7+
AppleOAuth = "AppleOAuth"
78
Auth0SAML = "Auth0SAML"
89
AzureSAML = "AzureSAML"
910
CasSAML = "CasSAML"
@@ -13,6 +14,7 @@ class ConnectionType(Enum):
1314
DuoSAML = "DuoSAML"
1415
GenericOIDC = "GenericOIDC"
1516
GenericSAML = "GenericSAML"
17+
GitHubOAuth = "GitHubOAuth"
1618
GoogleOAuth = "GoogleOAuth"
1719
GoogleSAML = "GoogleSAML"
1820
JumpCloudSAML = "JumpCloudSAML"

workos/utils/sso_provider_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
class SsoProviderType(Enum):
5+
AppleOAuth = "AppleOAuth"
56
GitHubOAuth = "GitHubOAuth"
67
GoogleOAuth = "GoogleOAuth"
78
MicrosoftOAuth = "MicrosoftOAuth"

workos/utils/um_provider_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
class UserManagementProviderType(Enum):
55
AuthKit = "authkit"
6+
AppleOAuth = "AppleOAuth"
67
GitHubOAuth = "GitHubOAuth"
78
GoogleOAuth = "GoogleOAuth"
89
MicrosoftOAuth = "MicrosoftOAuth"

0 commit comments

Comments
 (0)