ory/hydra

cli: add `--id` parameter to the `create oauth2-client` command

inigohu opened this issue · 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

In previous versions of Hydra v1, there was the possibility to create a client with an ID using the CLI. Now, that parameter has disappeared.

However, the API does allow to create the client with an ID as parameter.

Describe your ideal solution

Add --id parameter to the create oauth2-client command

Workarounds or alternatives

Create the client using the HTTP api:

curl http://localhost:4445/admin/clients -H 'Content-Type:application/json' -d '{"client_id": "myclient", "client_secret": "mysecret", "grant-types": "client_credentials"}'

Version

v2.x.x

Additional Context

No response