omniauth-campus 0.1.1 → 0.1.2

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: 4cfdadfbc4b58130e3db95db421cab97813b55aa
4
- data.tar.gz: 4c95fd26b5659ebe49710058a0a96e85b6a9c1b8
3
+ metadata.gz: 4201720a12e078966ef5a1405c8958e5bb1cae99
4
+ data.tar.gz: 3bdfbaba025b0e523827b1d83930da14980b4e19
5
5
  SHA512:
6
- metadata.gz: 5027610d753962e76e1905ebb1d6451b1ae6d846e0aa02300f3f54da46a18edee4a3b55b3555fad360886f495dfd42e52702146d4c6a52d14f7196295b738434
7
- data.tar.gz: 470b5fc84f6c52166d98066e4c9809b4258f2904e373f85d0fb50eee97dcb475ed6428663cc60be2dc75b0c3418732a1d056f04c22ac2fc6e83dd5f041f5d177
6
+ metadata.gz: 21e634165b4dbeef10f6ca6d0c3c1ecd1e9c50ee85cc92c86653f7a2d288106451d1911c295d5cf938d025db9cee2a4e22a3ed4cce0905508d29398db485dd1f
7
+ data.tar.gz: 6b75357faa56728ee9c24bef062a23bb1b0ea868f99567cfb4931990a6221789ad5e7661d1767e0a4c03fc961bdcdfc61a8aef6468d9e6fc36b4b5dbe7b2296c
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
6
6
 
Binary file
@@ -14,11 +14,7 @@ module OmniAuth
14
14
 
15
15
  option :name, 'campus'
16
16
 
17
- args [:consumer_key, :consumer_secret]
18
- option :consumer_key, nil
19
- option :consumer_secret, nil
20
- option :callback_url, nil
21
- option :client_options, {}
17
+ option :client_options, { token_url: "/oauth/request_token", access_url: "/oauth/request_access"}
22
18
  option :fields, [:username, :password]
23
19
 
24
20
  #site: 'http://community3dev.devcloud.acquia-sites.com/api'
@@ -31,7 +27,6 @@ module OmniAuth
31
27
  # }
32
28
  #
33
29
  #
34
- uid {request.params['user_id']}
35
30
 
36
31
  def request_phase
37
32
  form = OmniAuth::Form.new(:title => options.title, :url => callback_path)
@@ -42,8 +37,20 @@ module OmniAuth
42
37
  form.to_response
43
38
  end
44
39
 
40
+ uid {request.params['user_id']}
41
+
42
+ info do {
43
+ name: raw_info['name'],
44
+ email: raw_info['email']
45
+ }
46
+ end
47
+
48
+ extra do
49
+ raw_info
50
+ end
51
+
45
52
  def raw_info
46
- @raw_info ||= MultiJson.decode(access_token.get('http://community3dev.devcloud.acquia-sites.com/api')).body
53
+ @raw_info ||= MultiJson.decode(access_token.get('/oauth/request_access')).body
47
54
  end
48
55
 
49
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-campus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr