omniauth-fenix 0.2.3 → 0.2.4

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: 5dbe680deda05773f93070e7a223b33dd1d73019
4
- data.tar.gz: 8578070351017946183c43ca9e1ac57448be2846
3
+ metadata.gz: ccfb19ecbcc3f663d93ed01e5f07ded1ab3a61a4
4
+ data.tar.gz: a1ca7809485c7576854d3d2ca1cdeaa6103de233
5
5
  SHA512:
6
- metadata.gz: ed37243229cf579d71276d071830294f1af5921780a1c7c8543611c3f1b741eeaf08729df02e300984edb51f43e04195e759fcd3fdf23973c18d3e88a57ad8a7
7
- data.tar.gz: 44b3c0da74880c38d5186d328a1ce0f0712de7f5507086a362a109b069c782d5d7573df334535c687cc53262f1d212cfdcd8a2436d5544c691c959682d88a35b
6
+ metadata.gz: 999da528d5ed471547903e7f88056e51afbb9093fd3b1899e45cbdfc6012438abc56614e436bc1b99a5220331826fcbe3af206f57beb971ff87c15486c2e96df
7
+ data.tar.gz: 8f6238bf4f3b93890f6700443c609ab313cb0469c73f25cb847c4eaab1e1ae1e2c488e1f06526ba4c795a725d25d4ee8a640f8ec31739f478896e2c3c181d2a5
@@ -12,6 +12,7 @@ module OmniAuth
12
12
  }
13
13
 
14
14
  AUTHORIZE_URL = 'https://fenix.tecnico.ulisboa.pt/oauth/'
15
+ CALLBACK_URL = 'http://citysdk.tecnico.ulisboa.pt:3000/auth/fenix/callback'
15
16
 
16
17
  def request_phase
17
18
  redirect request_url
@@ -29,12 +30,12 @@ module OmniAuth
29
30
  log :info, ">>>>>>> code: #{request.params['code']}"
30
31
  log :info, ">>>>>>> ID: #{client.id}"
31
32
  log :info, ">>>>>>> SECRET: #{client.secret}"
32
- log :info, ">>>>>>> callback: #{callback_url}"
33
+ log :info, ">>>>>>> callback: #{CALLBACK_URL}"
33
34
 
34
35
  token_params = {
35
36
  :client_id => client.id,
36
37
  :client_secret => client.secret,
37
- :redirect_uri => callback_url,
38
+ :redirect_uri => CALLBACK_URL,
38
39
  :code => request.params['code'],
39
40
  :grant_type => 'authorization_code'
40
41
  }
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fenix
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
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: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Mangas Pereira