omniauth-fenix 0.1.2 → 0.1.3

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: 6d1eb1e123add16b554b992ad227cc2e1f3f0d98
4
- data.tar.gz: 96171be3c3a8dc92d27519965a4561172bb2886c
3
+ metadata.gz: 98681324585b85ea7b5aa74398657142a2d10666
4
+ data.tar.gz: 216d143913033b2af5109faec96263ff97f8c940
5
5
  SHA512:
6
- metadata.gz: a9ced0c234b1aa8ec3e9f7b3b6ae76e30dcd4fe799a23b0cc75c51b9078251ae6b8021d94b2a60d11e347bced21c55dda5dd8bbc9c1f2c41a8fb1b04b51c550e
7
- data.tar.gz: 3c10220f049c72bee8a43a5f74235bc721e0126c186921ae08b01cbdfa8492a53f3615398449376c4287b63d8b15617c98b947edfee8ae8804729b1efedd7625
6
+ metadata.gz: eeb6c3f90dc6cf5213750e6dc9eb367b2809ba666865fca7f2e9c30973ba5079701af1eb38afd97d9caaa20e71e5c468d24c1d0b94872b2bbdce371a216e9842
7
+ data.tar.gz: c2492002ffcdb6a2095423000f5735bbe853c43744b005aaa508bdad994f25398f483eb9c479221a3391dde27fb3331d9d378d0a61b8764a3e3e0bbb63c18835
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fenix
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -5,6 +5,8 @@ module OmniAuth
5
5
  class Fenix < OmniAuth::Strategies::OAuth2
6
6
  option :name, 'fenix'
7
7
 
8
+ args [:api_key, :api_secret]
9
+
8
10
  SITE = 'https://fenix.tecnico.ulisboa.pt'
9
11
  AUTHORIZE_URL = 'https://fenix.tecnico.ulisboa.pt/oauth/'
10
12
 
@@ -29,7 +31,7 @@ module OmniAuth
29
31
  private
30
32
 
31
33
  def request_url
32
- "#{AUTHORIZE_URL}userdialog?client_id=#{client_key}&redirect_uri=#{callback_url}"
34
+ "#{AUTHORIZE_URL}userdialog?client_id=#{options.api_key}&redirect_uri=#{callback_url}"
33
35
  end
34
36
  end
35
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-fenix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Mangas Pereira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-19 00:00:00.000000000 Z
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler