From dc4ee8757fd8a83e0abac5a505e32cebed7d0e12 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 8 Mar 2020 21:25:52 +0200 Subject: [PATCH] Fix for e2e test --- app/controllers/mock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/mock.php b/app/controllers/mock.php index 6b63bb53ad..eb84a5b2ba 100644 --- a/app/controllers/mock.php +++ b/app/controllers/mock.php @@ -240,7 +240,7 @@ $utopia->get('/v1/mock/tests/general/oauth2') ->label('scope', 'public') ->label('docs', false) ->param('client_id', '', function () { return new Text(100); }, 'OAuth2 Client ID.') - ->param('redirect_uri', '', function () { return new Host(['http://localhost']); }, 'OAuth2 Redirect URI.') // Important to deny an open redirect attack + ->param('redirect_uri', '', function () { return new Host(['localhost']); }, 'OAuth2 Redirect URI.') // Important to deny an open redirect attack ->param('scope', '', function () { return new Text(100); }, 'OAuth2 scope list.') ->param('state', '', function () { return new Text(1024); }, 'OAuth2 state.') ->action( @@ -254,7 +254,7 @@ $utopia->get('/v1/mock/tests/general/oauth2/token') ->label('scope', 'public') ->label('docs', false) ->param('client_id', '', function () { return new Text(100); }, 'OAuth2 Client ID.') - ->param('redirect_uri', '', function () { return new Host(['http://localhost']); }, 'OAuth2 Redirect URI.') + ->param('redirect_uri', '', function () { return new Host(['localhost']); }, 'OAuth2 Redirect URI.') ->param('client_secret', '', function () { return new Text(100); }, 'OAuth2 scope list.') ->param('code', '', function () { return new Text(100); }, 'OAuth2 state.') ->action(