Fixed the oauth cucumber features

This commit is contained in:
Ilyaaaaaaaaaaaaa Zhitomirskiy 2011-06-23 16:03:36 -07:00
parent d46f3a8d1f
commit 63125cb9b9
2 changed files with 2 additions and 2 deletions

View file

@ -63,6 +63,6 @@ Feature: oauth
And I am on the authorizations page
And I preemptively confirm the alert
And I follow "Delete"
And I follow "Revoke Access"
Then I visit "/account?id=1" on Chubbies
Then I should see "Token invalid"

View file

@ -11,7 +11,7 @@ Given /^Chubbies is registered on my pod$/ do
public_key = OpenSSL::PKey::RSA.new(packaged_manifest['public_key'])
manifest = JWT.decode(packaged_manifest['jwt'], public_key)
client = OAuth2::Provider.client_class.create_or_reset_from_manifest!(manifest)
client = OAuth2::Provider.client_class.create_or_reset_from_manifest!(manifest, public_key)
params = {:client_id => client.oauth_identifier,
:client_secret => client.oauth_secret,
:host => "localhost:9887"}