omniauth-campus 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5194265fbf59b6a1303cf4d7bc425116173b1c6
4
- data.tar.gz: 1aeee3aa86639374e825a6c58e183a155e3563ed
3
+ metadata.gz: 9d88848165eb30bc215d0a58666d0e06274c93e6
4
+ data.tar.gz: 4f89c48cfc9e3f493ef9621b6e48425f7efd5d0b
5
5
  SHA512:
6
- metadata.gz: 1505bd34c97c8708e1c54ee989793a2ab7e4357aabf9dcd420125db2647b39633a64073c600893ac388dce6314bf791e74f7b938f23ebdcaa0e8545f3819dc54
7
- data.tar.gz: 97fd6897b4a1aafe84f8f56de7919e856265b4b1269ed868d1b57316460a2e7e881350eeebb31f6cea0ae00e9f36c555b5be049f4aa32eb4caf78609a4ccf590
6
+ metadata.gz: 413e77c25c65e7ae5344e25f563c88429b814cd35fc0ceb10bc0bb0c56975e4589e5f6ef792cce2f77fbc48d896205fa309bc2291df1a3a7497a84c1f2c1da3f
7
+ data.tar.gz: 036221fdf8f4d3333b138f7b8a5fcebac8fd987d26f2e7630dd71ce55d1a04b3fb6670524a0fcb0e06f5a7eb9f7cf8168c303228d8c547cb7fc0d1178d6c94a9
Binary file
@@ -12,8 +12,7 @@ require 'uri'
12
12
  module OmniAuth
13
13
  module Strategies
14
14
  # Your code goes here...
15
- class Campus
16
- include OmniAuth::Strategy
15
+ class Campus < OmniAuth::Strategies::OAuth
17
16
 
18
17
 
19
18
  option :name, 'campus'
@@ -33,6 +32,11 @@ module OmniAuth
33
32
 
34
33
  attr_accessor :access_token
35
34
 
35
+ def request_phase
36
+ options[:authorize_params] = {:perms => options[:scope]} if options[:scope]
37
+ super
38
+ end
39
+
36
40
 
37
41
  #site' 'http://community3dev.devcloud.acquia-sites.com/api'
38
42
 
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.6.2"
3
+ VERSION = "0.6.3"
4
4
  end
5
5
  end
6
6
 
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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr