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: 1adb1a5b4420ae221a7f70af32877f7b3f448e5a
4
- data.tar.gz: 0154c0585b102f7a10c9ea7efeab5f29b5c928ce
3
+ metadata.gz: fe276188ae2570e782e172e1fb6e626ab85196c8
4
+ data.tar.gz: c6405abe0a3a8fd89589a028fe2d3279edbca067
5
5
  SHA512:
6
- metadata.gz: c1da4295953c34237a93423f1ebaea4f71864c466e8008d92f579bfab5f769b23864eebafe21de60d40c3bdd62f3872c37ba6047b18661a1bc8a07258c6335e0
7
- data.tar.gz: cc1826e009c427cc70fb912b7b929de5722961ee6035c823d00fffca3751925e2b53571441ecf9153e1d390cf9c7ea2251e97dd0f8b94b65bb7d46b16ffde942
6
+ metadata.gz: 0ce496793e7728e11e75cf79e881749cb3a919ea91e414430d8a246391f6fd30fb2d982b770fe49cc113a426052b4031f52ce21a1ce85dbbc847e09b177c2538
7
+ data.tar.gz: a371ede7ef6888df7958c817e42942d50f0f12d244ef611c26b4debab994f2d73cc5bce0468513bbf0523920287149db515f0e12c0171a1dc95cc619ef5621aa
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.8.3"
3
+ VERSION = "0.8.4"
4
4
  end
5
5
  end
6
6
 
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
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.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr