oauth2-bundle
oauth2-bundle copied to clipboard
UpdateClientCommand options behavior
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.