omniauth-surveymonkey2 0.0.2 → 0.0.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: ee5d4ebc635a5f09ab6a4db63ed8092cc122e655
|
4
|
+
data.tar.gz: 0427168110185737cad1242c567914bf65d2ae53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a260ea0cc658dc5a707c4abd49a8c71c2e560ca5cc59384004b4d06656aeec69af13a9ad0020f91641dd312c8b5cbfb89595adc2b726af1625fc34a53a73f213
|
7
|
+
data.tar.gz: 5b198b9e31a376ea332586319db6ddb70f1cb7df7a2484c6ee0aebc9768986297edecd297a2e3e4a02ff7f77a0a08c74a982381b05278f442699375c8a83c1e6
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'omniauth
|
1
|
+
require 'omniauth/strategies/oauth2'
|
2
2
|
|
3
3
|
module OmniAuth
|
4
4
|
module Strategies
|
@@ -18,7 +18,6 @@ module OmniAuth
|
|
18
18
|
option :authorize_options, [:client_id, :api_key]
|
19
19
|
|
20
20
|
def authorize_params
|
21
|
-
log :info, ">>>>>>>> in authorize_params"
|
22
21
|
super.tap do |params|
|
23
22
|
params[:response_type] ||= DEFAULT_RESPONSE_TYPE
|
24
23
|
params[:client_id] = options[:client_id]
|
@@ -27,7 +26,6 @@ module OmniAuth
|
|
27
26
|
end
|
28
27
|
|
29
28
|
def token_params
|
30
|
-
log :info, ">>>>>>> calling token params"
|
31
29
|
super.tap do |params|
|
32
30
|
params[:grant_type] ||= DEFAULT_GRANT
|
33
31
|
params[:client_id] = options[:client_id]
|
@@ -37,26 +35,14 @@ module OmniAuth
|
|
37
35
|
end
|
38
36
|
|
39
37
|
def build_access_token
|
40
|
-
log :info, ">>>>>>>> calling build_access_token"
|
41
38
|
verifier = request.params['code']
|
42
|
-
log :info, ">>>>>>> code: #{verifier.inspect}"
|
43
|
-
log :info, ">>>>> getting auth token now"
|
44
39
|
token = client.auth_code.get_token(verifier, token_params)
|
45
|
-
log :info, ">>>>>> token: #{token.inspect}"
|
46
|
-
token
|
47
40
|
end
|
48
41
|
|
49
42
|
def callback_phase
|
50
|
-
log :info, ">>>>>>>> in callback_phase"
|
51
43
|
options[:client_options][:token_url] = "/oauth/token?api_key=#{options[:api_key]}"
|
52
|
-
log :info, ">>>> in callback phase, calling build_access_token"
|
53
44
|
self.access_token = build_access_token
|
54
|
-
|
55
|
-
log :info, ">>>> getting ready to set auth hash"
|
56
|
-
hash = auth_hash
|
57
|
-
log :info, ">>>>> auth hash is: #{hash.inspect}"
|
58
|
-
self.env['omniauth.auth'] = hash
|
59
|
-
log :info, ">>>> calling app"
|
45
|
+
self.env['omniauth.auth'] = auth_hash
|
60
46
|
call_app!
|
61
47
|
end
|
62
48
|
|
@@ -18,8 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.
|
22
|
-
spec.add_dependency 'omniauth-oauth2', '~> 1.0'
|
21
|
+
spec.add_runtime_dependency 'omniauth-oauth2'
|
23
22
|
|
24
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
24
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-surveymonkey2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beck
|
@@ -10,34 +10,20 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2013-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: omniauth
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: omniauth-oauth2
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
|
-
- -
|
17
|
+
- - '>='
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
19
|
+
version: '0'
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
|
-
- -
|
24
|
+
- - '>='
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
26
|
+
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|