workos 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8aa19ede17769e141b7fcffeeb62b5cf4b3629fa0e70d1084b79078b691e1a28
4
- data.tar.gz: '0395d416943a7f9f2e76643ae5eaa895025ee80acbdc751760e5cc7fb361b6f9'
3
+ metadata.gz: cb4ed5c75fde00ce9440cfb146e5f556b98a21959b3f231bebc0ca2b0cb499dc
4
+ data.tar.gz: '089e4d96517c1242ea0a5dad7bebbec0f476f7a54caf48e23a0037bb6a09da14'
5
5
  SHA512:
6
- metadata.gz: db2f2a83a2805b3e1f838a5335cfc990edf2dd045955e4086ecc6b209c52dffad25b9d06e34f085e98e3f55b54b39d281a419026cc7216b6f368a95e17353679
7
- data.tar.gz: 90412141f8bda8924677b49381ee111fe06bff8dde9d7ff8b6c1c039c52f2970ef2b3b503766955f2454ccf92b7839087248f2796ea71d880546e24ec5c04628
6
+ metadata.gz: 9e1378b7c7b241caf3d948034618af56c3fcdabc2d6e42a8e36dea5a877cd014767dbb72397ea4401a30fb90c66ee0457d73391d497dfea6997dd733e298f1f0
7
+ data.tar.gz: ae8ecbb1b18e22db2843adf9a8182c2d0f93b1e6a1d178bb17dfa991f3eba602deee2f6a71a3b3515135c135ec8f8d0a6d56caca9cb2bdc0ea5ddacf661f7fae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (2.8.0)
4
+ workos (2.9.0)
5
5
  sorbet-runtime (~> 0.5)
6
6
 
7
7
  GEM
data/lib/workos/portal.rb CHANGED
@@ -23,14 +23,17 @@ module WorkOS
23
23
  # @param [String] The URL that the end user will be redirected to upon
24
24
  # exiting the generated Admin Portal. If none is provided, the default
25
25
  # redirect link set in your WorkOS Dashboard will be used.
26
+ # @param [String] The URL to which WorkOS will redirect users to upon
27
+ # successfully setting up Single Sign On or Directory Sync.
26
28
  sig do
27
29
  params(
28
30
  intent: String,
29
31
  organization: String,
30
32
  return_url: T.nilable(String),
33
+ success_url: T.nilable(String),
31
34
  ).returns(String)
32
35
  end
33
- def generate_link(intent:, organization:, return_url: nil)
36
+ def generate_link(intent:, organization:, return_url: nil, success_url: nil)
34
37
  validate_intent(intent)
35
38
 
36
39
  request = post_request(
@@ -39,6 +42,7 @@ module WorkOS
39
42
  intent: intent,
40
43
  organization: organization,
41
44
  return_url: return_url,
45
+ success_url: success_url,
42
46
  },
43
47
  path: '/portal/generate_link',
44
48
  )
@@ -2,5 +2,5 @@
2
2
  # typed: strong
3
3
 
4
4
  module WorkOS
5
- VERSION = '2.8.0'
5
+ VERSION = '2.9.0'
6
6
  end
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.workos.com/portal/generate_link
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"intent":"audit_logs","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null}'
8
+ string: '{"intent":"audit_logs","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null,"success_url":null}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.workos.com/portal/generate_link
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"intent":"dsync","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null}'
8
+ string: '{"intent":"dsync","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null,"success_url":null}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.workos.com/portal/generate_link
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"intent":"sso","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null}'
8
+ string: '{"intent":"sso","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null,"success_url":null}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
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: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WorkOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-12 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -402,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
402
  - !ruby/object:Gem::Version
403
403
  version: '0'
404
404
  requirements: []
405
- rubygems_version: 3.3.23
405
+ rubygems_version: 3.3.24
406
406
  signing_key:
407
407
  specification_version: 4
408
408
  summary: API client for WorkOS