omniauth-fenix 0.1.3 → 0.1.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: 98681324585b85ea7b5aa74398657142a2d10666
4
- data.tar.gz: 216d143913033b2af5109faec96263ff97f8c940
3
+ metadata.gz: f504549940554e32caebc68ab71fffd71f073ed4
4
+ data.tar.gz: 86a3093878f1b6fd7063ab97fd0648c0ec79592b
5
5
  SHA512:
6
- metadata.gz: eeb6c3f90dc6cf5213750e6dc9eb367b2809ba666865fca7f2e9c30973ba5079701af1eb38afd97d9caaa20e71e5c468d24c1d0b94872b2bbdce371a216e9842
7
- data.tar.gz: c2492002ffcdb6a2095423000f5735bbe853c43744b005aaa508bdad994f25398f483eb9c479221a3391dde27fb3331d9d378d0a61b8764a3e3e0bbb63c18835
6
+ metadata.gz: 572d1d6ac5e4680b785b90f9cb3433c1f9d17ab8a3c0e9c1e156b8c2ce16d7d013d7743ef2a46c5554fea54eae22342cf57613fadb0817a0471adb05e4ce3255
7
+ data.tar.gz: e58ce581b701370e3e776d16e6fac4446b2b30c39d5a59803daf3f0cae525e6c31a526e331059461a1f85520fedba51a930ae99fd5db2837c937924fdbcf88f5
@@ -5,9 +5,12 @@ 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'
10
+ }
11
+
8
12
  args [:api_key, :api_secret]
9
13
 
10
- SITE = 'https://fenix.tecnico.ulisboa.pt'
11
14
  AUTHORIZE_URL = 'https://fenix.tecnico.ulisboa.pt/oauth/'
12
15
 
13
16
  def request_phase
@@ -25,7 +28,7 @@ module OmniAuth
25
28
  end
26
29
 
27
30
  def raw_info
28
- @raw_info ||= access_token.get("#{SITE}/api/fenix/v1/person").parsed
31
+ @raw_info ||= access_token.get("/api/fenix/v1/person").parsed
29
32
  end
30
33
 
31
34
  private
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fenix
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
Binary file
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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Mangas Pereira
@@ -71,6 +71,7 @@ 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.1.3.gem
74
75
  - omniauth-fenix.gemspec
75
76
  homepage:
76
77
  licenses: