omniauth-zoho 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: ca4edc3d11c121c1a4015620322846cb4a8d0e9f
4
- data.tar.gz: c48d7aa2cfa03a789f29f59d927ad2ff82bdc19a
3
+ metadata.gz: 173aaf06fe29e0d5edb5ed3441f79ed800695009
4
+ data.tar.gz: 24cdb441f6f04f6b38baeb3be4b050c4606b4056
5
5
  SHA512:
6
- metadata.gz: 140d362ad6e81960c68a70638fe9986fa2a419453b90392356cf88ab12ee9817e12bce2ad40fe9b2eb3c263e848a8841f1cf75a836f6a434e307939c6f5424fb
7
- data.tar.gz: 40e5c9b768764a5920d1a02578f11b1ad02d35e1959e44aaab280e053458b192599260f1a9c9b7629be45358ee8b0b8b778ff684d428b96debe11b1e6e991c57
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
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Zoho
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  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.2.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-27 00:00:00.000000000 Z
11
+ date: 2018-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2