oauth2-bundle icon indicating copy to clipboard operation
oauth2-bundle copied to clipboard

UpdateClientCommand options behavior

Open v-m-i opened this issue 4 years ago • 0 comments

I have noticed that UpdateClientCommand deletes options that were not sent and always activates client if deactivated flag was not sent.

Example:

bin/console trikoder:oauth2:create-client client test --grant-type client_credentials
bin/console trikoder:oauth2:update-client client --deactivated 
 => client now has active set to 0 and grants set to null (lost his client_credentials grant)
bin/console trikoder:oauth2:update-client client --scope test
 => client now has active set to 1, grants to null and scope to test

Expected end result for example above would be: Client has active set to 0, grants to client_credentials and scope to test.

v-m-i avatar Mar 30 '20 20:03 v-m-i