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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/workos/types/provider.rb +1 -1
- data/lib/workos/user_management.rb +4 -1
- data/lib/workos/version.rb +1 -1
- data/spec/lib/workos/sso_spec.rb +2 -1
- data/spec/lib/workos/user_management_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94d723bd3b90173b4441a1120b73952cd884dca2d5ec252e08c5ba27211bc675
|
4
|
+
data.tar.gz: d17a6769e5cc60554ad667857a516f2b3be3cc463196805a901cc10f4afa957b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca39225bbfa687f02e01db828262aaf54daa744e381b2aa10a84afa771c49285c2ea119be3dbb96fdb6cae8d6ab814a86a4a10cbf67b8e92036ca057b84e60c
|
7
|
+
data.tar.gz: 0abcfb9a3dcb4014a9663815bcb228218d654b423a4a9d5f542fcfb162694a809fd418b9a3e6beb279846838587904853af7d3b5580730aec62ba757a5ed1b96
|
data/Gemfile.lock
CHANGED
@@ -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
|
)
|
data/lib/workos/version.rb
CHANGED
data/spec/lib/workos/sso_spec.rb
CHANGED
@@ -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
|
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
|
+
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-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|