omniauth-workos 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{LICENSE.txt → LICENSE} +0 -0
- data/lib/omniauth/strategies/workos.rb +1 -7
- 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: 2e05a70e4c4a4f1f507e3da8f0c9173cbee58c6ac338e1c2b8f1fa498d068a6c
|
4
|
+
data.tar.gz: 83222f50390cc65115a64f5b2d4195b9e185799751f8ddd6e49ca95f1febe2ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c2fc76f79e400a493a049b2a7c8e4c56c1d9997feca504112c0641c77279bc0d3ae681856cc0bdbdbf1ae869d64f0d43f102c837555db0a6c55024fffb0ea96
|
7
|
+
data.tar.gz: 9747b9cc20be2ae7f8cc6b74f811af4a2fc2e49bd4bac5279968e1e54d3fef34f5f2ae8a9ad5f60b2e18b15a0282985aafa4771667d6c8a8ef9a85c30e36d9ce
|
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
@@ -22,9 +22,6 @@ module OmniAuth::Strategies
|
|
22
22
|
authorize_url: "/sso/authorize",
|
23
23
|
token_url: "/sso/token"
|
24
24
|
option :authorize_options, %w[organization connection provider login_hint]
|
25
|
-
# info_fields:
|
26
|
-
# Either an **array** with the names of the fields as **strings**, or the
|
27
|
-
# the **string** "all" to return all available fields.
|
28
25
|
option :info_fields, "all"
|
29
26
|
|
30
27
|
uid do
|
@@ -37,7 +34,6 @@ module OmniAuth::Strategies
|
|
37
34
|
else
|
38
35
|
{}.tap do |result|
|
39
36
|
options[:info_fields].each do |field|
|
40
|
-
field = field.to_s
|
41
37
|
result[field] = raw_info[field]
|
42
38
|
end
|
43
39
|
end
|
@@ -76,9 +72,7 @@ module OmniAuth::Strategies
|
|
76
72
|
super.tap do |params|
|
77
73
|
options[:authorize_options].each do |key|
|
78
74
|
value = request.params[key]
|
79
|
-
|
80
|
-
|
81
|
-
params[key] = value
|
75
|
+
params[key] = value unless blank?(value)
|
82
76
|
end
|
83
77
|
|
84
78
|
# Store the authorize params in the session because we will need them
|
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.1
|
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-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -49,7 +49,7 @@ files:
|
|
49
49
|
- ".standard.yml"
|
50
50
|
- CHANGELOG.md
|
51
51
|
- Gemfile
|
52
|
-
- LICENSE
|
52
|
+
- LICENSE
|
53
53
|
- README.md
|
54
54
|
- Rakefile
|
55
55
|
- lib/omniauth-workos.rb
|