Skip to content

Commit 2fa5d50

Browse files
committed
Add Salesforce OAuth as an authentication provider
1 parent 369b799 commit 2fa5d50

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

workos/types/sso/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"PingFederateSAML",
3838
"PingOneSAML",
3939
"RipplingSAML",
40+
"SalesforceOAuth",
4041
"SalesforceSAML",
4142
"ShibbolethGenericSAML",
4243
"ShibbolethSAML",

workos/types/sso/sso_provider_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
"GitHubOAuth",
77
"GoogleOAuth",
88
"MicrosoftOAuth",
9+
"SalesforceOAuth",
910
]

workos/types/user_management/authentication_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"GitHubOAuth",
1414
"GoogleOAuth",
1515
"MicrosoftOAuth",
16+
"SalesforceOAuth",
1617
"MagicAuth",
1718
"Impersonation",
1819
]

workos/types/user_management/oauth_tokens.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"GitHubOauth",
88
"GoogleOauth",
99
"MicrosoftOauth",
10+
"SalesforceOauth",
1011
]
1112

1213

workos/types/user_management/user_management_provider_type.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22

33

44
UserManagementProviderType = Literal[
5-
"authkit", "AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"
5+
"authkit",
6+
"AppleOAuth",
7+
"GitHubOAuth",
8+
"GoogleOAuth",
9+
"MicrosoftOAuth",
10+
"SalesforceOAuth",
611
]

workos/user_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def get_authorization_url(
396396
organization_id (str): The organization_id connection selector is used to initiate SSO for an Organization.
397397
The value of this parameter should be a WorkOS Organization ID. (Optional)
398398
provider (UserManagementProviderType): The provider connection selector is used to initiate SSO using an OAuth-compatible provider.
399-
Currently, the supported values for provider are 'authkit', 'AppleOAuth', 'GitHubOAuth, 'GoogleOAuth', and 'MicrosoftOAuth'. (Optional)
399+
Currently, the supported values for provider are 'authkit', 'AppleOAuth', 'GitHubOAuth, 'GoogleOAuth', 'MicrosoftOAuth', and 'SalesforceOAuth'. (Optional)
400400
provider_scopes (Sequence[str]): Can be used to specify additional scopes that will be requested when initiating SSO using an OAuth provider. (Optional)
401401
domain_hint (str): Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth,
402402
or with a GoogleSAML connection type. (Optional)

0 commit comments

Comments
 (0)