omniauth-fliva 0.1.2 → 0.1.3

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: a8828b73aad4f80b4efba4d3c9ef8b306218df9d
4
- data.tar.gz: bba836eab29312d95242a8bbdc24cb5ee604684a
3
+ metadata.gz: 571d59e77271c2547c3c483443dd2a65dd657766
4
+ data.tar.gz: 9f45f47ff47be3f9e5f6a37b8e42e5211310a510
5
5
  SHA512:
6
- metadata.gz: 28f13fe6c9b0dc74e3f958443843be12d461f17653c6626410fc1a4b33879b4e5264730a2f798073c12b5f97c239003da7fb1f910c318721aad4037535851927
7
- data.tar.gz: 1f2fcbfe92b47799c04465966e1c6b1dd69d7dff37ad38836a54e22d5e62141e51cb83dd7647ed488b07d37767f0bdd31b18e45d1b1171fde5f4d9fa45dc9d71
6
+ metadata.gz: 49286d11b6b4897f66a77ae8aa5893cf9d311b4eba5393abaee59fd60cccd1d7cd89c01cfb4aeb0fbd0c4ab806f3fdafce4e563a440f932e8b183e5ea547769e
7
+ data.tar.gz: b1925d46e94a7d9a5cbaa5b545ec32504eac80ee44a7e236614e5daf93fcb1ce4cad662e4ba1abd00889a8ea2b859510de3b042faa7c5972b7c9b0dc99058873
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fliva
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -14,12 +14,15 @@ module OmniAuth
14
14
 
15
15
  info do
16
16
  {
17
- :account => raw_info["account"]
17
+ :account => raw_info["attributes"]["account"]["id"],
18
+ :account_name => raw_info["attributes"]["account"]["title"],
19
+ :user_name => raw_info["attributes"]["name"],
20
+ :user_email => raw_info["attributes"]["email"]
18
21
  }
19
22
  end
20
23
 
21
24
  def raw_info
22
- @raw_info ||= access_token.get('/me.json').parsed
25
+ @raw_info ||= access_token.get('/me.json').parsed["data"]
23
26
  end
24
27
 
25
28
  def callback_url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-fliva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Witt