green on all the cucumbers WOOT
This commit is contained in:
parent
af8ce13ee5
commit
ec9932e491
3 changed files with 5 additions and 6 deletions
|
|
@ -61,6 +61,8 @@ class AuthorizationsController < ApplicationController
|
|||
split = signed_string.split(';')
|
||||
time = split[2]
|
||||
nonce = split[3]
|
||||
|
||||
return 'blank public key' if public_key.blank?
|
||||
return "invalid time" unless valid_time?(time)
|
||||
return 'invalid nonce' unless valid_nonce?(nonce)
|
||||
return 'invalid signature' unless verify_signature(signed_string, Base64.decode64(sig), public_key)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ Given /^Chubbies has been killed$/ do
|
|||
end
|
||||
|
||||
Given /^Chubbies is registered on my pod$/ do
|
||||
client = OAuth2::Provider.client_class.create_from_manifest!("localhost:#{Chubbies::PORT}/manifest.json")
|
||||
manifest = JSON.parse(RestClient.get("localhost:#{Chubbies::PORT}/manifest.json").body)
|
||||
client = OAuth2::Provider.client_class.create_from_manifest!(manifest)
|
||||
params = {:client_id => client.oauth_identifier,
|
||||
:client_secret => client.oauth_secret,
|
||||
:host => "localhost:9887"}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ PATH
|
|||
specs:
|
||||
diaspora-client (0.0.0)
|
||||
activerecord
|
||||
em-synchrony
|
||||
faraday
|
||||
oauth2
|
||||
sinatra
|
||||
|
|
@ -21,12 +20,9 @@ GEM
|
|||
arel (~> 2.0.2)
|
||||
tzinfo (~> 0.3.23)
|
||||
activesupport (3.0.3)
|
||||
addressable (2.2.6)
|
||||
addressable (2.2.4)
|
||||
arel (2.0.10)
|
||||
builder (2.1.2)
|
||||
em-synchrony (0.2.0)
|
||||
eventmachine (>= 0.12.9)
|
||||
eventmachine (0.12.10)
|
||||
faraday (0.6.1)
|
||||
addressable (~> 2.2.4)
|
||||
multipart-post (~> 1.1.0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue