facemock-oauth 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module Facemock
|
|
8
8
|
|
9
9
|
def call(env)
|
10
10
|
if env["PATH_INFO"] == Authentication.path && env["REQUEST_METHOD"] == "POST"
|
11
|
-
raw_body = env['rack.input'].gets
|
11
|
+
raw_body = URI.unescape(env['rack.input'].gets)
|
12
12
|
body = query_string_to_hash(raw_body)
|
13
13
|
email = body["email"]
|
14
14
|
password = body["pass"]
|
@@ -11,7 +11,7 @@ describe Facemock::OAuth::Authentication do
|
|
11
11
|
let(:failed_path) { '/facemock/sign_in' }
|
12
12
|
let(:email) { 'test@example.org' }
|
13
13
|
let(:password) { 'password' }
|
14
|
-
let(:body) { "email=#{email}&pass=#{password}" }
|
14
|
+
let(:body) { URI.escape("email=#{email}&pass=#{password}", "@&") }
|
15
15
|
let(:content_type) { 'application/x-www-form-urlencoded' }
|
16
16
|
let(:header) { { 'CONTENT_TYPE' => content_type } }
|
17
17
|
|
data/spec/facemock/oauth_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facemock-oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
segments:
|
205
205
|
- 0
|
206
|
-
hash:
|
206
|
+
hash: 2698689373691770913
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
208
|
none: false
|
209
209
|
requirements:
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
segments:
|
214
214
|
- 0
|
215
|
-
hash:
|
215
|
+
hash: 2698689373691770913
|
216
216
|
requirements: []
|
217
217
|
rubyforge_project:
|
218
218
|
rubygems_version: 1.8.25
|