1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Fixed validation

This commit is contained in:
Eldad Fux 2020-09-10 00:30:29 +03:00
parent e399b13639
commit 69faaf8559

View file

@ -382,7 +382,7 @@ App::patch('/v1/projects/:projectId/oauth2')
->label('sdk.namespace', 'projects')
->label('sdk.method', 'updateOAuth2')
->param('projectId', '', function () { return new UID(); }, 'Project unique ID.')
->param('provider', '', function () { return new WhiteList(\array_keys(Config::getParam('providers'), true)); }, 'Provider Name', false)
->param('provider', '', function () { return new WhiteList(\array_keys(Config::getParam('providers')), true); }, 'Provider Name', false)
->param('appId', '', function () { return new Text(256); }, 'Provider app ID. Max length: 256 chars.', true)
->param('secret', '', function () { return new text(512); }, 'Provider secret key. Max length: 512 chars.', true)
->action(function ($projectId, $provider, $appId, $secret, $response, $consoleDB) {