omniauth-campus 0.8.3 → 0.8.4
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: fe276188ae2570e782e172e1fb6e626ab85196c8
|
4
|
+
data.tar.gz: c6405abe0a3a8fd89589a028fe2d3279edbca067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ce496793e7728e11e75cf79e881749cb3a919ea91e414430d8a246391f6fd30fb2d982b770fe49cc113a426052b4031f52ce21a1ce85dbbc847e09b177c2538
|
7
|
+
data.tar.gz: a371ede7ef6888df7958c817e42942d50f0f12d244ef611c26b4debab994f2d73cc5bce0468513bbf0523920287149db515f0e12c0171a1dc95cc619ef5621aa
|
Binary file
|
Binary file
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'omniauth-oauth2'
|
2
|
+
require 'rack/utils'
|
2
3
|
|
3
4
|
module OmniAuth
|
4
5
|
module Strategies
|
@@ -9,6 +10,15 @@ module OmniAuth
|
|
9
10
|
:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
|
10
11
|
}
|
11
12
|
|
13
|
+
option :access_token_options, {
|
14
|
+
:header_format => 'OAuth %s',
|
15
|
+
:param_name => 'access_token'
|
16
|
+
}
|
17
|
+
|
18
|
+
def access_token_options
|
19
|
+
options.access_token_options.inject({}) { |h,(k,v)| h[k.to_sym] = v; h }
|
20
|
+
end
|
21
|
+
|
12
22
|
uid { raw_info['uid'] }
|
13
23
|
|
14
24
|
info do
|