Fixed the oauth cucumber features
This commit is contained in:
parent
d46f3a8d1f
commit
63125cb9b9
2 changed files with 2 additions and 2 deletions
|
|
@ -63,6 +63,6 @@ Feature: oauth
|
||||||
|
|
||||||
And I am on the authorizations page
|
And I am on the authorizations page
|
||||||
And I preemptively confirm the alert
|
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 visit "/account?id=1" on Chubbies
|
||||||
Then I should see "Token invalid"
|
Then I should see "Token invalid"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Given /^Chubbies is registered on my pod$/ do
|
||||||
public_key = OpenSSL::PKey::RSA.new(packaged_manifest['public_key'])
|
public_key = OpenSSL::PKey::RSA.new(packaged_manifest['public_key'])
|
||||||
manifest = JWT.decode(packaged_manifest['jwt'], 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,
|
params = {:client_id => client.oauth_identifier,
|
||||||
:client_secret => client.oauth_secret,
|
:client_secret => client.oauth_secret,
|
||||||
:host => "localhost:9887"}
|
:host => "localhost:9887"}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue