Skip to content

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

@inigohu

Description

@inigohu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions