Skip to content

UpdateClientCommand options behavior #191

@v-m-i

Description

@v-m-i

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions