workos 5.4.0 → 5.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e96a33bee882eb21d22726513aac5a488ff88a0bd4cf3229dff028d942f167c5
4
- data.tar.gz: ec682c61ba49d5fa28304cf7eff937c9f418db588708a923f361e1a7fde38bfd
3
+ metadata.gz: 94d723bd3b90173b4441a1120b73952cd884dca2d5ec252e08c5ba27211bc675
4
+ data.tar.gz: d17a6769e5cc60554ad667857a516f2b3be3cc463196805a901cc10f4afa957b
5
5
  SHA512:
6
- metadata.gz: 6a0013b9cfa1e87d48fc05e367fb0042f36d3495d0c3bd57d6dfcde18b268cc76892ba3129340c72f8719ea5dc2796fad8879737b498cffcb48346b09eb697e3
7
- data.tar.gz: 6b581232dcfd75bab0d54b9915fa38a514c2cb9d059110a74aecd20170f78111819629a269d4b8ede7bcf0d89d3f92e04414503e6b8270b4ae6131abd0af6b39
6
+ metadata.gz: 4ca39225bbfa687f02e01db828262aaf54daa744e381b2aa10a84afa771c49285c2ea119be3dbb96fdb6cae8d6ab814a86a4a10cbf67b8e92036ca057b84e60c
7
+ data.tar.gz: 0abcfb9a3dcb4014a9663815bcb228218d654b423a4a9d5f542fcfb162694a809fd418b9a3e6beb279846838587904853af7d3b5580730aec62ba757a5ed1b96
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (5.4.0)
4
+ workos (5.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,7 +10,7 @@ module WorkOS
10
10
  Google = 'GoogleOAuth'
11
11
  Microsoft = 'MicrosoftOAuth'
12
12
 
13
- ALL = [GitHub, Google, Microsoft].freeze
13
+ ALL = [Apple, GitHub, Google, Microsoft].freeze
14
14
  end
15
15
  end
16
16
  end
@@ -19,7 +19,7 @@ module WorkOS
19
19
  Microsoft = 'MicrosoftOAuth'
20
20
  AuthKit = 'authkit'
21
21
 
22
- ALL = [GitHub, Google, Microsoft, AuthKit].freeze
22
+ ALL = [Apple, GitHub, Google, Microsoft, AuthKit].freeze
23
23
  end
24
24
 
25
25
  # The AuthFactorType is a declaration of a
@@ -318,6 +318,7 @@ module WorkOS
318
318
  #
319
319
  # @param [String] refresh_token The refresh token previously obtained from a successful authentication call
320
320
  # @param [String] client_id The WorkOS client ID for the environment
321
+ # @param [String] organization_id The organization to issue the new access token for. (Optional)
321
322
  # @param [String] ip_address The IP address of the request from the user who is attempting to authenticate.
322
323
  # @param [String] user_agent The user agent of the request from the user who is attempting to authenticate.
323
324
  #
@@ -325,6 +326,7 @@ module WorkOS
325
326
  def authenticate_with_refresh_token(
326
327
  refresh_token:,
327
328
  client_id:,
329
+ organization_id: nil,
328
330
  ip_address: nil,
329
331
  user_agent: nil
330
332
  )
@@ -338,6 +340,7 @@ module WorkOS
338
340
  ip_address: ip_address,
339
341
  user_agent: user_agent,
340
342
  grant_type: 'refresh_token',
343
+ organization_id: organization_id,
341
344
  },
342
345
  ),
343
346
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkOS
4
- VERSION = '5.4.0'
4
+ VERSION = '5.5.1'
5
5
  end
@@ -281,7 +281,8 @@ describe WorkOS::SSO do
281
281
  described_class.authorization_url(**args)
282
282
  end.to raise_error(
283
283
  ArgumentError,
284
- 'Okta is not a valid value. `provider` must be in ["GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"]',
284
+ 'Okta is not a valid value. `provider` must be in ' \
285
+ '["AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth"]',
285
286
  )
286
287
  end
287
288
  end
@@ -213,7 +213,7 @@ describe WorkOS::UserManagement do
213
213
  end.to raise_error(
214
214
  ArgumentError,
215
215
  'Okta is not a valid value. `provider` must be in ' \
216
- '["GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth", "authkit"]',
216
+ '["AppleOAuth", "GitHubOAuth", "GoogleOAuth", "MicrosoftOAuth", "authkit"]',
217
217
  )
218
218
  end
219
219
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workos
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - WorkOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-05 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler