omniauth-fenix 1.0.7 → 1.0.8

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: fc884c28f5b0ea8f986e4f283b6b14a314f5fc80
4
- data.tar.gz: 9c3fb1e4e7bfb8ca21810711ecd5292b7a382ec7
3
+ metadata.gz: 855228792ff4a71fe79e68a952d14b61823c8de5
4
+ data.tar.gz: 90a1a345860d9156691c05f95e47f21a803bde66
5
5
  SHA512:
6
- metadata.gz: f381888710f922faa133076fc0eab95539e457fbb01d0ae7da7a6f6967efaca8343ccaebb831c6ff1a38c53212e773036acad8c6bd4e11c6befebca94cddcddd
7
- data.tar.gz: 6a8e458ed3c423aa0c6f4980a258c07dbcc4e1def8b3c8fd95870004f747b873756406448e892c4566352ff6da3182b3fdaf6f7dc7136c929c4146ff40cf6562
6
+ metadata.gz: db7b11a0c4ae15495807987cb103783bad76a57ab963a912001d15c1b11c4f173bf8b8a9be39da05f0f81b62135a543038c7ab5d15312de84b5b11886e6f7838
7
+ data.tar.gz: 2b5c4ab0167ac429e0f6f4506526920c7cb5da9a8c8fa324e3790a48fe467c4cec484f565477d63e11061d8bfef0a7a45b96afb10252a06a103475f384fe1540
@@ -5,12 +5,6 @@ module OmniAuth
5
5
  class Fenix < OmniAuth::Strategies::OAuth2
6
6
  option :name, 'fenix'
7
7
 
8
- option :client_options, {
9
- :site => 'https://fenix.tecnico.ulisboa.pt/api/fenix/v1',
10
- :token_url => 'https://fenix.tecnico.ulisboa.pt/oauth/access_token',
11
- :authorize_url => 'https://fenix.tecnico.ulisboa.pt/oauth/'
12
- }
13
-
14
8
  def request_phase
15
9
  redirect request_url
16
10
  end
@@ -34,9 +28,6 @@ module OmniAuth
34
28
  end
35
29
 
36
30
  def build_access_token
37
- p "2"
38
- p parsed_callback_url
39
- p "2"
40
31
  token_params = {
41
32
  :client_id => client.id,
42
33
  :client_secret => client.secret,
@@ -55,11 +46,8 @@ module OmniAuth
55
46
  private
56
47
 
57
48
  def request_url
58
- p "t"
59
- p parsed_callback_url
60
- p "t"
61
49
  authorize_url = 'https://fenix.tecnico.ulisboa.pt/oauth/'
62
- "#{authorize_url}userdialog?client_id=#{client.id}&redirect_uri=#{parsed_callback_url}"
50
+ "#{authorize_url}userdialog?client_id=#{client.id}&redirect_uri=#{callback_url}"
63
51
  end
64
52
  end
65
53
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fenix
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
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: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Mangas Pereira