Skip to content

Commit

Permalink
Add AppleOAuth and GitHubOAuth constants (#277)
Browse files Browse the repository at this point in the history
* Add AppleOAuth (and missing GithubOAuth) constants

* Hub
  • Loading branch information
gcarvelli authored Jul 22, 2024
1 parent 73575bd commit 6fd2bfc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
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"

0 comments on commit 6fd2bfc

Please sign in to comment.