Skip to content

Commit fddbe12

Browse files
authored
Add AppleOAuth constants (#306)
* Add AppleOAuth constants * better alphabet * Hub
1 parent f685bbd commit fddbe12

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/workos/sso.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class << self
2828
# connection, or organization is required.
2929
# The domain is deprecated.
3030
# @param [String] provider A provider name for an Identity Provider
31-
# configured on your WorkOS dashboard. Only 'GoogleOAuth' and
32-
# 'MicrosoftOAuth' are supported.
31+
# configured on your WorkOS dashboard. Only 'AppleOAuth', 'GitHubOAuth',
32+
# 'GoogleOAuth', and 'MicrosoftOAuth' are supported.
3333
# @param [String] connection The ID for a Connection configured on
3434
# WorkOS.
3535
# @param [String] organization The ID for an Organization configured

lib/workos/types/provider.rb

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Types
55
# The Provider constants are declarations of a
66
# fixed set of values for SSO Providers.
77
module Provider
8+
Apple = 'AppleOAuth'
89
GitHub = 'GitHubOAuth'
910
Google = 'GoogleOAuth'
1011
Microsoft = 'MicrosoftOAuth'

lib/workos/user_management.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module Types
1313
# The ProviderEnum is a declaration of a
1414
# fixed set of values for User Management Providers.
1515
class Provider
16+
Apple = 'AppleOAuth'
1617
GitHub = 'GitHubOAuth'
1718
Google = 'GoogleOAuth'
1819
Microsoft = 'MicrosoftOAuth'
@@ -44,7 +45,8 @@ class << self
4445
# configured redirect URI on your WorkOS dashboard.
4546
# @param [String] client_id This value can be obtained from the API Keys page in the WorkOS dashboard.
4647
# @param [String] provider A provider name is used to initiate SSO using an
47-
# OAuth-compatible provider. Only 'authkit ,'GoogleOAuth' and 'MicrosoftOAuth' are supported.
48+
# OAuth-compatible provider. Only 'authkit', 'AppleOAuth', 'GitHubOAuth', 'GoogleOAuth',
49+
# and 'MicrosoftOAuth' are supported.
4850
# @param [String] connection_id The ID for a Connection configured on
4951
# WorkOS.
5052
# @param [String] organization_id The organization_id selector is used to

0 commit comments

Comments
 (0)