hi. I deployed hydra to digitalocean kubernetes. ...
# talk-hydra
a
hi. I deployed hydra to digitalocean kubernetes. How can I add new client_id and calback_url ?
p
Hey @User You will need to use the hydra cli or admin api. I'm guessing you probably did not setup some way to secure the admin api, (e.g use it over the internet). You would need to connect to your server and execute the hydra cli on the server manually.
a
hydra cli not opened. I'm trying api but ı have ssl error
p
are you using curl?
a
yes .
Copy code
curl --header "Content-Type: application/json"     --request POST     --data '{"redirect_uris":["<https://my-callback-url>"],"token_endpoint_auth_method": "client_secret_basic"}'     <https://oznfc.tk/oauth2/register> -v
ı have error :
Copy code
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 159.89.214.46...
* TCP_NODELAY set
* Connected to <http://oznfc.tk|oznfc.tk> (159.89.214.46) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS Unknown, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Unknown (8):
* TLSv1.3 (IN), TLS Unknown, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS alert, Server hello (2):
* SSL certificate problem: unable to get local issuer certificate
* stopped the pause stream!
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: <https://curl.haxx.se/docs/sslcerts.html>

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
p
a
ı added with
Copy code
--insecure
ı'm getting this error on my client
Copy code
Refused to display '<http://localhost:3001/>' in a frame because it set 'X-Frame-Options' to 'deny'.
p
I'm a bit lost 😅 Are you making the requests to Hydra Admin API over the internet? Or did you exec into the pod where hydra is running ?
a
it's running but ı'm nut sure . ı have this on pod's logs. :
Copy code
msg=An error occurred while handling a request audience=application error=map[debug:invalid_token message:The request could not be authorized reason:The requested OAuth 2.0 client does not exist or you provided incorrect credentials. status:Unauthorized status_code:401]