omniauth-zoho 0.2.0 → 0.3.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 +4 -4
- data/lib/omniauth/strategies/zoho.rb +12 -1
- data/lib/omniauth/zoho/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 173aaf06fe29e0d5edb5ed3441f79ed800695009
|
|
4
|
+
data.tar.gz: 24cdb441f6f04f6b38baeb3be4b050c4606b4056
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3c73efc59b617e2ab80f17d96b845c554a03a2bc8605351ee7d98ead70baced785e18dbadac1f3f40bb710e463485ae33d40741068384c9cc79a50f3ff06cf6
|
|
7
|
+
data.tar.gz: 629aaba28f8665a200617d27423e1bfceff28cf24a4c925d63f12588ec47ba1b070ea02d8b40272b0fc16bf0efeeeb306bb118a02a8df1177b5a54132ad804d6
|
|
@@ -11,6 +11,17 @@ module OmniAuth
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
option provider_ignores_state: true
|
|
14
|
+
option :authorize_options, %i[access_type prompt scope]
|
|
15
|
+
|
|
16
|
+
def authorize_params
|
|
17
|
+
super.tap do |params|
|
|
18
|
+
options[:authorize_options].each do |k|
|
|
19
|
+
params[k] = request.params[k.to_s] unless [nil, ''].include?(request.params[k.to_s])
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
params[:access_type] = 'offline' if params[:access_type].nil?
|
|
23
|
+
end
|
|
24
|
+
end
|
|
14
25
|
|
|
15
26
|
uid{ raw_info['id'] }
|
|
16
27
|
|
|
@@ -43,4 +54,4 @@ module OmniAuth
|
|
|
43
54
|
end
|
|
44
55
|
end
|
|
45
56
|
end
|
|
46
|
-
end
|
|
57
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-zoho
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Machado
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-12-
|
|
11
|
+
date: 2018-12-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|