omniauth-campus 0.6.7 → 0.6.8
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: 98c21b3880bddb979277b30a0f36dccdba43a901
|
4
|
+
data.tar.gz: 557332f378c3dbc1172a0088f6b14b0b54c8966b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47546198b7c8ff1fa9f66c6cfc2fdefe310434badb31505dd66db91d8febe5259990994e6653fe1d6703fbbbb696560fe5df7e0f5608f931f6f69b743e70d882
|
7
|
+
data.tar.gz: 57ced40436dea79e662a4b0cb2bbd23cbf664cdab7ff24ac9ab5fbb62b731c99c1df3e5638ba68aae68532413c845c500f5e82620476a89cecc7613fbbd57ef5
|
Binary file
|
Binary file
|
@@ -28,37 +28,8 @@ module OmniAuth
|
|
28
28
|
site: 'http://dev-oauth-test.gotpantheon.com/myawesomejson'
|
29
29
|
}
|
30
30
|
|
31
|
-
option :token_params, {
|
32
|
-
:parse => :query
|
33
|
-
}
|
34
|
-
|
35
|
-
option :access_token_options, {
|
36
|
-
:header_format => 'Oauth %s',
|
37
|
-
:param_name => 'access_token'
|
38
|
-
}
|
39
|
-
|
40
31
|
option :authorize_options, [:scope, :display, :auth_type]
|
41
32
|
|
42
|
-
def request_phase
|
43
|
-
if signed_request_contains_access_token?
|
44
|
-
# If we already have an access token, we can just hit the callback URL directly and pass the signed request.
|
45
|
-
params = { :signed_request => raw_signed_request }
|
46
|
-
query = Rack::Utils.build_query(params)
|
47
|
-
|
48
|
-
url = callback_url
|
49
|
-
url << "?" unless url.match(/\?/)
|
50
|
-
url << "&" unless url.match(/[\&\?]$/)
|
51
|
-
url << query
|
52
|
-
|
53
|
-
redirect url
|
54
|
-
else
|
55
|
-
super
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
def access_token_options
|
60
|
-
options.access_token_options.inject({}) { |h,(k,v)| h[k.to_sym] = v; h }
|
61
|
-
end
|
62
33
|
|
63
34
|
attr_accessor :access_token
|
64
35
|
|
Binary file
|
data/omniauth-campus.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
#spec.add_runtime_dependency 'omniauth', '~> 1.0'
|
24
|
-
spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.1'
|
24
|
+
spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1', '>= 1.1.1'
|
25
25
|
#spec.add_runtime_dependency 'oauth'
|
26
26
|
#spec.add_dependency 'oauth2', '~> 0.8.0'
|
27
27
|
spec.add_dependency 'faraday', ['>= 0.8', '<0.10']
|
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.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- johnvehr
|
@@ -43,6 +43,9 @@ dependencies:
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.1'
|
48
|
+
- - '>='
|
46
49
|
- !ruby/object:Gem::Version
|
47
50
|
version: 1.1.1
|
48
51
|
type: :runtime
|
@@ -50,6 +53,9 @@ dependencies:
|
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
55
|
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '1.1'
|
58
|
+
- - '>='
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: 1.1.1
|
55
61
|
- !ruby/object:Gem::Dependency
|