omniauth-fortnox-oauth2 0.0.2 → 0.0.4

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
  SHA256:
3
- metadata.gz: cc88bbc3ec3e4e3c3cb8295286105d6c26e8eea0da74697763ade9262710c12c
4
- data.tar.gz: 286a50a0942c9a610e50b004df391fe20992c45147dda0e556553581400c136c
3
+ metadata.gz: 8b4205196f555885b665f46c8133c393375e402004fd5f649afdeb37550baf53
4
+ data.tar.gz: c801df59317f0ea20f13c128e14bc37e9805d921987057f2ad4dd10c54f43037
5
5
  SHA512:
6
- metadata.gz: 79ebcfb3f9663767d1638327bd5bc8bc0eb3267a6369254a1da7af69da3c935f65c92bed435b2df1a6e198ec5a0a4c1c70153565133489cac58f9819162b1277
7
- data.tar.gz: 91e433a2cdf9f18fa255131f832b01a0d8073d5b0cfb494dade05d8e66b4d7a07207e8555ade8962e4ebb61e1862f143ecf2782e816f41287110f3a531c0c97c
6
+ metadata.gz: 965555b3e2b1fd7ab763875cb58f460b1979777df3b4e09fd9c7cd9a3552288ea27bec775256e027f6b907067bcb87e5618d8358edaff06bf92b08d4e3120e8e
7
+ data.tar.gz: b853caf7304547f7660366a0f43c0637a16edf0221516432a8e35bb506323dc7c8037b495af8e4e41e073fcaf367c489f0b6adf7dd2192bf19fd83b25e421bd3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-fortnox-oauth2 (0.0.2)
4
+ omniauth-fortnox-oauth2 (0.0.4)
5
5
  omniauth-oauth2
6
6
 
7
7
  GEM
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module FortnoxOAuth2
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.4'
6
6
  end
7
7
  end
@@ -20,6 +20,7 @@ module OmniAuth
20
20
 
21
21
  option :authorize_options, %i[scope state account_type]
22
22
  option :provider_ignores_state, false
23
+ option :fortnox_redirect_uri, nil
23
24
 
24
25
  uid { raw_info['CompanyInformation']['OrganizationNumber'] }
25
26
 
@@ -68,6 +69,7 @@ module OmniAuth
68
69
 
69
70
  def build_access_token
70
71
  verifier = request.params['code']
72
+
71
73
  client.auth_code.get_token(
72
74
  verifier,
73
75
  { redirect_uri: callback_url }.merge(token_params.to_hash(symbolize_keys: true)),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-fortnox-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - svenne87
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-03 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2