You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using unix as host for the administrative REST API, it seems that the first part of the uri is being ignored. You can put whatever you want at the first part of the path (usually oauth2) and it will get ignored, receiving a 404.
Reproducing the bug
Steps to reproduce the behavior:
Run hydra serve all
Make API Request to with curl --unix-socket /opt/hydra/admin.sock "http:/oauth2/auth/requests/login?login_challenge=0bc25c8363e14156b2d637009bdc3f12"
Request fails with response: {"error": "Error 404 - The requested route does not exist. Make sure you are using the right path, domain, and port."}
Make API Request to with curl --unix-socket /opt/hydra/admin.sock "http:/11111/oauth2/auth/requests/login?login_challenge=0bc25c8363e14156b2d637009bdc3f12"
Request success with response: {"challenge":"0bc25c8363e14156b2d637009bdc3f12","requested_scope":["openid"],...
@aaslamin Not an expert on unix domain sockets. I didn't found official documentation about this, but many people connecting to docker http socket like the way I do (Like this, this, and here, on the "HTTP" example tab)
@aaslamin@someone1 Further investigation lead me to curl and I tried to find something related inside curl. It seems that this discussion is what is giving me the problem and hydra is handling the request correctly.
Sorry for opening the bug. It seemed premature opened but yesterday I was crazy finding the right solution and I thought hydra was the problem. Thank you guys!
Describe the bug
When using unix as host for the administrative REST API, it seems that the first part of the uri is being ignored. You can put whatever you want at the first part of the path (usually oauth2) and it will get ignored, receiving a 404.
Reproducing the bug
Steps to reproduce the behavior:
hydra serve all
curl --unix-socket /opt/hydra/admin.sock "http:/oauth2/auth/requests/login?login_challenge=0bc25c8363e14156b2d637009bdc3f12"
{"error": "Error 404 - The requested route does not exist. Make sure you are using the right path, domain, and port."}
curl --unix-socket /opt/hydra/admin.sock "http:/11111/oauth2/auth/requests/login?login_challenge=0bc25c8363e14156b2d637009bdc3f12"
{"challenge":"0bc25c8363e14156b2d637009bdc3f12","requested_scope":["openid"],...
Server logs
Server configuration
Expected behavior
It should allow to make a request with cURL like
curl --unix-socket /opt/hydra/admin.sock "http:/clients"
Environment
Version: v1.0.0-rc.11
Git Hash: 33acfa8
Build Time: 2019-05-02T14:03:15Z
Environment: ArchLinux x86_64, Kernel 5.0.7
The text was updated successfully, but these errors were encountered: