quick-addition-90714
10/05/2024, 9:51 PMbrief-egg-61061
10/05/2024, 9:51 PMbrief-egg-61061
10/05/2024, 9:52 PMbash docker-compose -f quickstart.yml exec hydra \ hydra create client \ --endpoint <http://127.0.0.1:4445> \ --grant-type authorization_code,refresh_token \ --response-type code,id_token,email \ --scope openid,offline_access,profile,email \ --redirect-uri <http://gitlab.example.com:8000/users/auth/Ory_Hydra/callback> \ --token-endpoint-auth-method client_secret_post
After creating the client, you can extract the client ID and client secret using the jq
tool: bash client_id=$(echo $client | jq -r '.client_id') client_secret=$(echo $client | jq -r '.client_secret')
Please note that the --endpoint
flag should be set to the administrative API endpoint of your Ory Hydra server. For more information, you can refer to the [Ory Hydra documentation](https://www.ory.sh/docs/hydra/cli/hydra-create-client).quick-addition-90714
10/05/2024, 9:53 PMbrief-egg-61061
10/05/2024, 9:53 PMbrief-egg-61061
10/05/2024, 9:54 PMhydra update client
command. For example, you can update the client name, grant types, response types, and other parameters. Here's an example: bash hydra update client <client-id-here> -c <http://localhost/cb> -g authorization_code -r code -a core,foobar
For more information, you can refer to the [Ory Hydra documentation](https://www.ory.sh/docs/hydra/cli/hydra-update-client).