omniauth-workos 1.1.1 → 1.1.2

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: 2e05a70e4c4a4f1f507e3da8f0c9173cbee58c6ac338e1c2b8f1fa498d068a6c
4
- data.tar.gz: 83222f50390cc65115a64f5b2d4195b9e185799751f8ddd6e49ca95f1febe2ed
3
+ metadata.gz: edf1f4d5dd0df9f0dd9bc8a810cbdc3ef64921b2fffeaad3f01827a48114d925
4
+ data.tar.gz: 233859d8e25fa2dec8c1005d7b6264de62ea02b83e2cff5b07f0d1d7b0460fbb
5
5
  SHA512:
6
- metadata.gz: 6c2fc76f79e400a493a049b2a7c8e4c56c1d9997feca504112c0641c77279bc0d3ae681856cc0bdbdbf1ae869d64f0d43f102c837555db0a6c55024fffb0ea96
7
- data.tar.gz: 9747b9cc20be2ae7f8cc6b74f811af4a2fc2e49bd4bac5279968e1e54d3fef34f5f2ae8a9ad5f60b2e18b15a0282985aafa4771667d6c8a8ef9a85c30e36d9ce
6
+ metadata.gz: 76c6d9cda0c4f776b90dd3ac2da8bac1ee319af670c53874c4c334d93859c51ce357872c4ce8e2549de04562c347081140a3c094f8339dee7eb3ae08602746cd
7
+ data.tar.gz: 995a06e5937b09a821e363b55f6fe446b0466b322357df6e1da46d0a02b1956bd3278df24ecb6534d328ce03c8d19262afb1657c29b1c6c5932b4839ef98fa17
data/CHANGELOG.md CHANGED
@@ -1,9 +1,17 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.2] - 2022-10-21
4
+
5
+ - Avoid duplicating authorization params in the user's session.
6
+
7
+ ## [1.1.1] - 2022-03-15
8
+
9
+ - Nothing to see here, small refactoring.
10
+
3
11
  ## [1.1.0] - 2022-02-23
4
12
 
5
- - Return clearer errors
13
+ - Return clearer errors.
6
14
 
7
15
  ## [1.0.0] - 2022-02-21
8
16
 
9
- - Initial release
17
+ - Initial release.
@@ -13,9 +13,6 @@ module OmniAuth::Strategies
13
13
  end
14
14
  end
15
15
 
16
- AUTHORIZE_PARAMS_SESSION_KEY = "omniauth_workos_authorize_params"
17
- private_constant :AUTHORIZE_PARAMS_SESSION_KEY
18
-
19
16
  option :name, "workos"
20
17
  option :client_options,
21
18
  site: "https://api.workos.com",
@@ -47,7 +44,7 @@ module OmniAuth::Strategies
47
44
  "expires" => true,
48
45
  "expires_at" => Time.now.utc.to_i + (10 * 60)
49
46
  }.tap do
50
- authorize_params = session.delete(AUTHORIZE_PARAMS_SESSION_KEY) || {}
47
+ authorize_params = env.fetch("omniauth.params")
51
48
 
52
49
  # Confirm that the user comes from the connection/organization requested
53
50
  # during the authorize phase.
@@ -74,11 +71,6 @@ module OmniAuth::Strategies
74
71
  value = request.params[key]
75
72
  params[key] = value unless blank?(value)
76
73
  end
77
-
78
- # Store the authorize params in the session because we will need them
79
- # during the callback phase to verify that the user comes from the
80
- # requested connection/organization.
81
- session[AUTHORIZE_PARAMS_SESSION_KEY] = params
82
74
  end
83
75
  end
84
76
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module WorkOS
5
- VERSION = "1.1.1"
5
+ VERSION = "1.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-workos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Fernandes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-15 00:00:00.000000000 Z
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.3.3
79
+ rubygems_version: 3.3.7
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: OmniAuth OAuth2 strategy for the WorkOS platform