ory / hydra

OpenID Certified™ OpenID Connect and OAuth Provider written in Go - cloud native, security-first, open source API security for your infrastructure. SDKs for any language. Works with Hardware Security Modules. Compatible with MITREid.
https://www.ory.sh/hydra/?utm_source=github&utm_medium=banner&utm_campaign=hydra
Apache License 2.0
15.27k stars 1.47k forks source link

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

Closed inigohu closed 2 months ago

inigohu commented 4 months ago

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