omniauth-squiddio 0.0.1 → 0.0.2

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: b5152b6ad90f9ec16ede6ab18f7531241f61c3b0
4
- data.tar.gz: 63c5dc3b8843d38c93009b2c35e0477e776f1248
3
+ metadata.gz: 76cee203bf56c50799a003b33029a2fbb1167186
4
+ data.tar.gz: bcb7056fc426ce4948a5d9267aa8c14c424a465c
5
5
  SHA512:
6
- metadata.gz: 65fa47bb8e7c6434d17b84b176165df34b69030f025182cb88ca50593ea387d114a285d1038da8089cb2bacdd1f66ded4a290969bbae1a59e8e2c2ff42050aa3
7
- data.tar.gz: cf37ab2b9208dc2e0ed6488d339a86da45eac3cee2072dc3ba3bbe9716e21e1a5a7740746719cf68b8ff2b6bdc19548638659efb5c6fe5c051a68f24495e71c5
6
+ metadata.gz: a73223e550e3b17795c4fd8355959d2705b5dd678e5c1c82686a79fee62da1209b1d73da814745dfb74c8e2bbea47a438d0020f98029398064c1e648f6d64a3b
7
+ data.tar.gz: 9d717be269bd0597ac9a9e7573b123c27ff80bca4166bd9612442144f1ad27cb96f0c9c02fc7f7c2a785580f533e0cac862dc203117590492ecfd6ed255cfc46
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Squiddio
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -11,7 +11,6 @@ module OmniAuth
11
11
  :site => "https://squidd.io" ,
12
12
  :authorize_path => "/oauth/authorize",
13
13
  :token_path => "/oauth/token"
14
- #:access_token_path => "/oauth/token"
15
14
  }
16
15
 
17
16
  uid { raw_info["id"] }
@@ -30,20 +29,9 @@ module OmniAuth
30
29
  end
31
30
 
32
31
  def raw_info
33
- access_token.options[:mode] = :query
34
32
  @raw_info ||= access_token.get('/signalk/api/v1/users/me').parsed
35
33
  end
36
34
 
37
- def build_access_token
38
- Rails.logger.debug "Omniauth build access token"
39
- options.token_params.merge!(:headers => {'Authorization' => basic_auth_header, 'Content-Type' => 'application/x-www-form-urlencoded' })
40
- super
41
- end
42
-
43
- def basic_auth_header
44
- "Basic " + Base64.strict_encode64("#{options[:client_id]}:#{options[:client_secret]}")
45
- end
46
-
47
35
  end
48
36
  end
49
37
  end
@@ -16,5 +16,4 @@ Gem::Specification.new do |gem|
16
16
  gem.require_paths = ["lib"]
17
17
 
18
18
  gem.add_dependency 'omniauth-oauth', '~> 1.1'
19
- #gem.add_dependency 'box-api'
20
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-squiddio
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
  - Mauro Calvi