exvo-auth 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/exvo-auth.gemspec
CHANGED
@@ -30,4 +30,11 @@ class ExvoAuth::Strategies::Base < OmniAuth::Strategies::OAuth2
|
|
30
30
|
'extra' => { 'user_hash' => user_data }
|
31
31
|
})
|
32
32
|
end
|
33
|
+
|
34
|
+
protected
|
35
|
+
|
36
|
+
# Have a better name? Let me know!
|
37
|
+
def unicorns_and_rainbows(hash)
|
38
|
+
hash.reject{|k, v| v.nil?}
|
39
|
+
end
|
33
40
|
end
|
@@ -4,6 +4,9 @@ class ExvoAuth::Strategies::Interactive < ExvoAuth::Strategies::Base
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def request_phase(options = {})
|
7
|
-
super(
|
7
|
+
super(unicorns_and_rainbows(
|
8
|
+
:scope => request["scope"],
|
9
|
+
:state => request["state"]
|
10
|
+
))
|
8
11
|
end
|
9
12
|
end
|
@@ -4,7 +4,11 @@ class ExvoAuth::Strategies::NonInteractive < ExvoAuth::Strategies::Base
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def request_phase(options = {})
|
7
|
-
redirect @client.non_interactive.authorize_url(
|
7
|
+
redirect @client.non_interactive.authorize_url(unicorns_and_rainbows(
|
8
|
+
:redirect_uri => callback_url,
|
9
|
+
:scope => request["scope"],
|
10
|
+
:state => request["state"]
|
11
|
+
))
|
8
12
|
end
|
9
13
|
|
10
14
|
def callback_url
|