omniauth-fenix 2.0.0 → 2.1.1

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: 5bd092cf2d14a5192d5f403cfd8e34b0ff47539a
4
- data.tar.gz: 2eebb3df1d167be9262c18e756280c9141824e56
3
+ metadata.gz: 253af34a4951e1821b963f3046b19ab87a759982
4
+ data.tar.gz: 83b94de8294b53df5175bfe8f778927bfe8aea62
5
5
  SHA512:
6
- metadata.gz: ecf458c0f357957c98ae48a62cd666e3255ac85c1c5dca69d97a12519e0ed653ad2317e93ea75dfa7e1942844d0cd2f4431fc82ef4547ceff2e84935742db981
7
- data.tar.gz: 625a147eb72741dfe8c6365f0f087bedcf3d970c3af3a54120fc1a9a133cf40ef86531d6fbd5bd6e9655f1d1d031d0b4145a52c26ef372f69194a19540afc73d
6
+ metadata.gz: 8dc07903652a2597c86889e5fa84886ef3477cd461471f545727533e2b6c13862a9ca0cc22d2a2560e510340c8ff4edbc9ff79bd17cf01dcc42f219791529ce6
7
+ data.tar.gz: 3f099630728952024806124775fdd73a4f70a4a9f5234fcc93ad3afa550e801829dcfada7118b3dccb806e12660f13ab70517f6bf8a2d2c39266a463dd6161cd
@@ -15,9 +15,6 @@ module OmniAuth
15
15
  CALLBACK_URL = 'http://citysdk.tecnico.ulisboa.pt:3000/auth/fenix/callback'
16
16
 
17
17
  def request_phase
18
- p "oi"
19
- p request_url
20
- p "oi"
21
18
  redirect request_url
22
19
  end
23
20
 
@@ -34,15 +31,12 @@ module OmniAuth
34
31
 
35
32
  def raw_info
36
33
  access_token.options[:parse] = :json
37
- url = "https://fenix.tecnico.ulisboa.pt/api/fenix/v2/person"
34
+ url = "https://fenix.tecnico.ulisboa.pt/api/fenix/v1/person"
38
35
  params = { :params => { :access_token => access_token.token } }
39
36
  @raw_info ||= access_token.get(url, params).parsed
40
37
  end
41
38
 
42
39
  def build_access_token
43
- p "e igual"
44
- p CALLBACK_URL == parsed_callback_url
45
- p "e igual"
46
40
  token_params = {
47
41
  :client_id => client.id,
48
42
  :client_secret => client.secret,
@@ -54,10 +48,6 @@ module OmniAuth
54
48
  client.get_token(token_params)
55
49
  end
56
50
 
57
- def parsed_callback_url
58
- callback_url.split('?').first
59
- end
60
-
61
51
  private
62
52
 
63
53
  def request_url
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fenix
3
- VERSION = "2.0.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-fenix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Mangas Pereira
@@ -71,14 +71,6 @@ files:
71
71
  - lib/omniauth-fenix.rb
72
72
  - lib/omniauth-fenix/version.rb
73
73
  - lib/omniauth/strategies/fenix.rb
74
- - omniauth-fenix-0.3.2.gem
75
- - omniauth-fenix-0.3.3.gem
76
- - omniauth-fenix-0.3.5.gem
77
- - omniauth-fenix-0.3.6.gem
78
- - omniauth-fenix-0.3.7.gem
79
- - omniauth-fenix-0.3.8.gem
80
- - omniauth-fenix-1.0.0.gem
81
- - omniauth-fenix-1.0.1.gem
82
74
  - omniauth-fenix.gemspec
83
75
  homepage:
84
76
  licenses:
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file