Authentication cucumber tests fixed by updating to for new scopes names

This commit is contained in:
Hank Grabowski 2019-01-01 11:05:55 -05:00
parent ce01946eb0
commit 3080d1c559
3 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
O_AUTH_QUERY_PARAMS_WITH_CODE = { O_AUTH_QUERY_PARAMS_WITH_CODE = {
redirect_uri: "http://example.org/", redirect_uri: "http://example.org/",
response_type: "code", response_type: "code",
scope: "openid profile read", scope: "openid profile",
nonce: "hello", nonce: "hello",
state: "hi" state: "hi"
} }

View file

@ -3,7 +3,7 @@
O_AUTH_QUERY_PARAMS = { O_AUTH_QUERY_PARAMS = {
redirect_uri: "http://example.org/", redirect_uri: "http://example.org/",
response_type: "id_token token", response_type: "id_token token",
scope: "openid profile read", scope: "openid profile",
nonce: "hello", nonce: "hello",
state: "hi", state: "hi",
prompt: "login" prompt: "login"
@ -12,7 +12,7 @@ O_AUTH_QUERY_PARAMS = {
O_AUTH_QUERY_PARAMS_WITH_MAX_AGE = { O_AUTH_QUERY_PARAMS_WITH_MAX_AGE = {
redirect_uri: "http://example.org/", redirect_uri: "http://example.org/",
response_type: "id_token token", response_type: "id_token token",
scope: "openid profile read", scope: "openid profile",
nonce: "hello", nonce: "hello",
state: "hi", state: "hi",
prompt: "login", prompt: "login",

View file

@ -3,12 +3,12 @@
Given /^a client with a provided picture exists for user "([^\"]*)"$/ do |email| Given /^a client with a provided picture exists for user "([^\"]*)"$/ do |email|
app = FactoryGirl.create(:o_auth_application, logo_uri: "/assets/user/default.png") app = FactoryGirl.create(:o_auth_application, logo_uri: "/assets/user/default.png")
user = User.find_by(email: email) user = User.find_by(email: email)
FactoryGirl.create(:auth_with_read, user: user, o_auth_application: app) FactoryGirl.create(:auth_with_read_scopes, user: user, o_auth_application: app)
end end
Given /^a client exists for user "([^\"]*)"$/ do |email| Given /^a client exists for user "([^\"]*)"$/ do |email|
user = User.find_by(email: email) user = User.find_by(email: email)
FactoryGirl.create(:auth_with_read, user: user) FactoryGirl.create(:auth_with_read_scopes, user: user)
end end
When /^I register a new client$/ do When /^I register a new client$/ do