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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d88848165eb30bc215d0a58666d0e06274c93e6
|
4
|
+
data.tar.gz: 4f89c48cfc9e3f493ef9621b6e48425f7efd5d0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|