Problem create an oauth2 client

I ran the following command to create an oauth2 client but the error message seemed confusing. Can anyone help? Thanks so much. - Li

docker run --rm -it --network hydranet oryd/hydra:latest clients create --skip-tls-verify --endpoint http://hydra-server:4445 --id some-consumer --secret some-secret --grant-types client_credentials --response-types token,code

Config file not found because “Config File “.hydra” Not Found in “[/]””

You should not provide secrets using command line flags, the secret might leak to bash history and similar systems

The request failed with the following error message:

invalid character ‘C’ looking for beginning of value

However, if I create an Oauth2 client to support all OAuth2 flows (see below) it works. The issue only happens if I create an OAuth2 client that supports only client_credentials.

docker run --rm -it -e HYDRA_ADMIN_URL=https://hydra-server:4445 --network hydranet oryd/hydra clients create --skip-tls-verify --id some-consumer --secret some-secret -grant-types authorization_code,refresh_token,client_credentials,implicit --response-types token,code,id_token --scope openid,offline,myriad --callbacks http://127.0.0.1:9010/callback

Config file not found because “Config File “.hydra” Not Found in “[/]””

You should not provide secrets using command line flags, the secret might leak to bash history and similar systems

OAuth 2.0 Client ID: some-consumer

Which version are you using? :slight_smile: