hydra
hydra copied to clipboard
Is there anyway to add permission for limit admin rest api access or custom message via docker compose mode
The first question
Run hydra with docker compose quickstart.yml,According the doc,add client via REST api,like this
curl -X POST 'http://localhost:4445/clients' \
-H 'Content-Type: application/json' \
--data-raw '{
"client_id": "myidentityapp",
"client_name": "MyIdentityPpp",
"client_secret": "mysecret",
"grant_types": ["authorization_code", "refresh_token"],
"redirect_uris": ["http://localhost:3000/callbacks"],
"response_types": ["code", "id_token"],
"scope": "offline users.write users.read users.edit users.delete",
"token_endpoint_auth_method": "client_secret_post"
}'
But in production mode,generally we do't want to expose 4445 to outside,otherwise any one can create a client remotely,is there a way to add a permission for this?
The second question I production mode,when you access port 4444 or port 4445,will show below message,
{"error": "Error 404 - The requested route does not exist. Make sure you are using the right path, domain, and port."}
Is there any way can custom this message by modifying docker-compose.yml?