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 +4 -4
- data/CHANGELOG.md +10 -2
- data/lib/omniauth/strategies/workos.rb +1 -9
- data/lib/omniauth-workos/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edf1f4d5dd0df9f0dd9bc8a810cbdc3ef64921b2fffeaad3f01827a48114d925
|
4
|
+
data.tar.gz: 233859d8e25fa2dec8c1005d7b6264de62ea02b83e2cff5b07f0d1d7b0460fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
|
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.
|
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-
|
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.
|
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
|