omniauth-lightspeed-pos 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 386add1ff58b666297a9efa0800454cbd281b97a
4
- data.tar.gz: fa524e6460e28cc5ae3115637c6773d81d5596b8
3
+ metadata.gz: 0d999c09ac3f4fd80c0d665b7aff0b9a62c62543
4
+ data.tar.gz: 62033ffaf11a0b5421d4d191e51bd9ed4abf600f
5
5
  SHA512:
6
- metadata.gz: 18952176cb8fe493feea9511d7c20ba2b76c28cb308b1b0179b2193de9790f0f517f53f53f0551cfd6b57fdc858726e85fbdb0bd89493d33e8eb01773f3813a0
7
- data.tar.gz: 93db7c76983dee36dab357dbf3cde153e52cea3fd0f72f4bad4d4457265c48fb866e001194af7a6ecc54ba6e83956ab7a9a13bc518ac9e45bbbabf9da2c46c4d
6
+ metadata.gz: f19b6a0db78f48ed9b9c558627e46043575d4189db58ed7772a913bb7681d00b09a74c3356790e9d0ccd3cbaafb0b9b88809c4ef5a37dae636631e1597d8836f
7
+ data.tar.gz: 5fc6e48ff3207b8393d1b66aee5bdc8dcf76f70a61d83521bad91c66c76e0cecd2823f26dd2b0aea80067c0d17f584d1e1f9ce83815457593c341b968aadcd85
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Lightspeed
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -12,6 +12,14 @@ module OmniAuth
12
12
  options[:scope] ||= "employee:all"
13
13
  super
14
14
  end
15
+
16
+ protected
17
+
18
+ def build_access_token
19
+ verifier = request.params["code"]
20
+ callback_url_without_params = callback_url.split("?")[0]
21
+ client.auth_code.get_token(verifier, {:redirect_uri => callback_url_without_params}.merge(token_params.to_hash(:symbolize_keys => true)), deep_symbolize(options.auth_token_params))
22
+ end
15
23
  end
16
24
  end
17
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-lightspeed-pos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zamith
@@ -51,7 +51,7 @@ files:
51
51
  - Gemfile.lock
52
52
  - README.md
53
53
  - Rakefile
54
- - lib/omniauth-lightspeed.rb
54
+ - lib/omniauth-lightspeed-pos.rb
55
55
  - lib/omniauth-lightspeed/version.rb
56
56
  - lib/omniauth/strategies/lightspeed.rb
57
57
  - omniauth-lightspeed.gemspec