Hey all, I am trying to setup hydra by following t...
# talk-hydra
m
Hey all, I am trying to setup hydra by following the documentation. I have successfully installled it but I have two doubts- 1:- after following all the steps when I ran https://my_domain/health?secret=CHANGE-ME-INSECURE-PASSWORD I got Error 404 The requested route does not exist. Make sure you are using the right path, domain, and port. also the other health APIs are returning 403 Forbidden. 2:- ssl certificate was only installed on one of url is that the private admin url but then how to install ssl for public url ? write another configuration in same way? Thank You
m
Hello Aman, what documentation are you following? The 5minute docker guide or bare metal deploy guide?
m
m
Is your nginx config checking out? Kinda hard to say what is the issue, could be many things… Maybe go through the individual steps and make sure everything works correctly. I did not test this guide with the new 2.0.1 version, but should still work 🤔
m
I checked it many times. Yes, config was checking out. I am trying with docker now.
m
You can also use Hydra APIs on the Ory Network if you dont want to deal with hosting. I make a note to double check the guide if something broke in 2.0
m
Hey, we have already built everything around self hosting and it was working fine with Dev and local while testing but now we are pushing to prod. Now I have wrote my own nginx config for the self hosting guide and health and version APIs are working fine but getting this with
/clients
API-
POST <https://auth.my>_domain/clients
Error: Invalid URI "https:///admin/clients". This can be caused by a crappy redirection
.
payload is -
{
"client_id": "myclient-1.0",
"client_name": "my_client-1.0",
"redirect_uris": [
"<https://somedomain/callback/>"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"response_types": [
"code",
"id_token"
],
"scope": "openid offline",
"audience": [],
"owner": "",
"policy_uri": "",
"allowed_cors_origins": [],
"tos_uri": "",
"client_uri": "",
"logo_uri": "",
"contacts": [],
"client_secret_expires_at": 0,
"subject_type": "public",
"jwks": {},
"token_endpoint_auth_method": "client_secret_post",
"userinfo_signed_response_alg": "none",
"created_at": "2022-01-31T17:29:33Z",
"updated_at": "2022-01-31T17:29:32.760925Z",
"metadata": {}
}
m
I see Aman, and great that you had a good experience self-hosting so far. Please understand that I can not walk you through the complete solution, just give pointers and advice. The error seems to stem from a wrongly configured URI for the admin route, maybe an issue in docker? It looks for
https:///admin/clients
but that is not a valid URI Also
This can be caused by a crappy redirection
Please check all redirects and if the flow ends up where it is supposed to end up
m
Working on it. Thank You 🙂