Hi, anyone have upgrade hydra from v1.11.8 to v2.1...
# talk-hydra
s
Hi, anyone have upgrade hydra from v1.11.8 to v2.1.2 ? if yes can you please tell me weather i can use the same Database and migrate into the same which is created at the time of v1.11.8 version or i have to create a new database for v2.1.2 ? also i want to ask when i was using v1.11.8 to create the hydra client i was using the endpoint
/clients
, Is there a change in the api end point naming convention in the new v2.1.2 ? if the answer is yes can anyone tell me what set of payload is mandatory to post to the new Api end point ?
I am running hydra v2.1.2 on my local with following curl request
Copy code
curl --location '<http://localhost:9001/admin/clients>' \
--header 'Content-Type: application/json' \
--data '{
  "client_name": "",
  "client_secret_expires_at": 0,
  "client_uri": "",
  "grant_types": [
    "authorization_code"
  ],
  "jwks": {},
  "logo_uri": "",
  "metadata": {},
  "owner": "",
  "policy_uri": "",
  "request_object_signing_alg": "RS256",
  "response_types": [
    "code"
  ],
  "scope": "offline_access offline openid",
  "skip_consent": false,
  "subject_type": "public",
  "token_endpoint_auth_method": "client_secret_basic",
  "tos_uri": "",
  "userinfo_signed_response_alg": "none"
}
'
and i am receiving this response
Copy code
{
  "audience": "application",
  "error": {
    "message": "EOF"
  },
  "http_request": {
    "headers": {
      "content-type": "application/json",
      "postman-token": "XXXXX"
    },
    "host": "localhost:9001",
    "method": "POST",
    "path": "/admin/clients",
    "query": null,
    "remote": "127.0.0.1:36124",
    "scheme": "http"
  },
  "http_response": {
    "status_code": 500
  },
  "level": "error",
  "msg": "An error occurred while handling a request",
  "service_name": "Ory Hydra",
  "service_version": "v2.1.2",
  "time": "2023-12-15T13:20:21.46657375Z"
}
Can any one tell me what i am doing wrong here ?
any one have any idea around this ?
#talk-hydra