diff --git a/lib/workos/types/provider.rb b/lib/workos/types/provider.rb index 65aba393..c0bbd2c0 100644 --- a/lib/workos/types/provider.rb +++ b/lib/workos/types/provider.rb @@ -10,7 +10,7 @@ module Provider Google = 'GoogleOAuth' Microsoft = 'MicrosoftOAuth' - ALL = [GitHub, Google, Microsoft].freeze + ALL = [Apple, GitHub, Google, Microsoft].freeze end end end diff --git a/lib/workos/user_management.rb b/lib/workos/user_management.rb index d145591d..361c239c 100644 --- a/lib/workos/user_management.rb +++ b/lib/workos/user_management.rb @@ -19,7 +19,7 @@ class Provider Microsoft = 'MicrosoftOAuth' AuthKit = 'authkit' - ALL = [GitHub, Google, Microsoft, AuthKit].freeze + ALL = [Apple, GitHub, Google, Microsoft, AuthKit].freeze end # The AuthFactorType is a declaration of a diff --git a/spec/lib/workos/sso_spec.rb b/spec/lib/workos/sso_spec.rb index 3dea8e32..591e83d9 100644 --- a/spec/lib/workos/sso_spec.rb +++ b/spec/lib/workos/sso_spec.rb @@ -281,7 +281,8 @@ described_class.authorization_url(**args) end.to raise_error( ArgumentError, - 'Okta is not a valid value. `provider` must be in ["GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"]', + 'Okta is not a valid value. `provider` must be in ' \ + '["AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"]', ) end end diff --git a/spec/lib/workos/user_management_spec.rb b/spec/lib/workos/user_management_spec.rb index d2f3616b..bea5b56a 100644 --- a/spec/lib/workos/user_management_spec.rb +++ b/spec/lib/workos/user_management_spec.rb @@ -213,7 +213,7 @@ end.to raise_error( ArgumentError, 'Okta is not a valid value. `provider` must be in ' \ - '["GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth", "authkit"]', + '["AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth", "authkit"]', ) end end