omniauth-xero-oauth2 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/xero_oauth2.rb +10 -0
- data/lib/xero-oauth2/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4917d76b7f3ff2e6172954ce29d6ed96ba065e8cc80c94f39f6c43752888160
|
4
|
+
data.tar.gz: 4a30e752f0134bb5494294c9a473dc50c74a1adfacfb05edb3a6d24a090c1e36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec380b36f48d15ccf6454253e2c6af0a588e50476a516bc80944196f8f95f5bc96d24ce08351c1b06aa0afadc3b69f41e309a9f725dab3734cd398f59fe653ba
|
7
|
+
data.tar.gz: 450757f0eca5c396acd7e0e85600e9f09ced17d07c36699c12d86f8099f49fa93fa4de55cb6afcada95af74093cbef47a371a62495f6712c56c0658cfdc2ae9e
|
@@ -6,6 +6,8 @@ module OmniAuth
|
|
6
6
|
class XeroOauth2 < OmniAuth::Strategies::OAuth2
|
7
7
|
option :name, :xero_oauth2
|
8
8
|
|
9
|
+
option :authorize_options, %i[login_hint state redirect_uri scope]
|
10
|
+
|
9
11
|
option(
|
10
12
|
:client_options,
|
11
13
|
{
|
@@ -15,6 +17,14 @@ module OmniAuth
|
|
15
17
|
},
|
16
18
|
)
|
17
19
|
|
20
|
+
def authorize_params
|
21
|
+
super.tap do |params|
|
22
|
+
options[:authorize_options].each do |k|
|
23
|
+
params[k] = request.params[k.to_s] unless [nil, ''].include?(request.params[k.to_s])
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
18
28
|
def callback_url
|
19
29
|
options[:redirect_uri] || (full_host + callback_path)
|
20
30
|
end
|
data/lib/xero-oauth2/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-xero-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xero API
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.2.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 2.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.2.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: omniauth-oauth2
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|