omniauth-fenix 0.3.5 → 0.3.6

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: a0f10c61d6187e6977090fab84ef9e04a8ef6f38
4
- data.tar.gz: b1981dfeab6f40c57f61282143864949e9b6c9c7
3
+ metadata.gz: 79f227870aaa588ad1b7de35da7584ae2a749f7e
4
+ data.tar.gz: 6bdced53c657ef5ea73d1aa612c99869045da948
5
5
  SHA512:
6
- metadata.gz: d62ae4eca205fe2720d290becd9a1c0c5b16cbe93b50e18462d4b3cbe50abb5d31a51c1046f443ec462e157ca210f1a58fd98885a846c66ef3dafe97286bac2c
7
- data.tar.gz: 04d52bf304cd797abb5232d94eed1a1ef202e678dcb3c538977157786016bf87a5b70aef7949e99d856fa15391447586e99dc6447d01543c7b2d773d822c7799
6
+ metadata.gz: cbc640b319dbb8447c7c0e2bdd06f16dcde6695bbb3785a5292c23c2b3d71d2844b28e3a1d71902e45cce5369d24fa755223e8bbf0a777bbba5af8686c4f7bc7
7
+ data.tar.gz: 18ee74138a4b8d383d023d42549df174fe6cd43cad7121dd076417e09a989bec57994860007aa914d5ba7031c8178ec9bfa4ac919517c2daac19b551c8992268
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fenix
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
@@ -12,6 +12,7 @@ module OmniAuth
12
12
  }
13
13
 
14
14
  AUTHORIZE_URL = 'https://fenix.tecnico.ulisboa.pt/oauth/'
15
+ CALLBACK_URL = 'http://192.168.99.100:3000/auth/fenix/callback'
15
16
 
16
17
  def request_phase
17
18
  redirect request_url
@@ -39,7 +40,7 @@ module OmniAuth
39
40
  token_params = {
40
41
  :client_id => client.id,
41
42
  :client_secret => client.secret,
42
- :redirect_uri => callback_url,
43
+ :redirect_uri => CALLBACK_URL,
43
44
  :code => request.params['code'],
44
45
  :grant_type => 'authorization_code'
45
46
  }
@@ -50,6 +51,9 @@ module OmniAuth
50
51
  private
51
52
 
52
53
  def request_url
54
+ puts "OLA"
55
+ puts callback_url
56
+ puts "OLA"
53
57
  "#{AUTHORIZE_URL}userdialog?client_id=#{client.id}&redirect_uri=#{callback_url}"
54
58
  end
55
59
  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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Mangas Pereira