Auth problems - KER-ATH-401 - Realm not found

Problem

Application modules such as Pre-Registration or IDA or Registration Processor or Partner management or Resident Services or Admin are unable to connect to Auth service. The Auth adapter is throwing “KER-ATH-401 - Realm not found” error

Request:

{
              "id": "mosip.otpnotification.send",
              "metadata": {},
              "request": {
                             "clientId": "registration-processor",
                             "secretKey": "d80ec0be-bba7-4d8e-bf0c-85ab45bb976b",
                             "appId": "registrationprocessor"
              },
              "requesttime": "2018-12-09T06:39:03.683Z",
              "version": "v1.0"
}

 

Response:

{
  "id": "mosip.otpnotification.send",
  "version": "v1.0",
  "responsetime": "2020-05-11T04:43:23.548Z",
  "metadata": null,
  "response": null,
  "errors": [
    {
      "errorCode": "KER-ATH-401",
      "message": "Realm not found:: registrationprocessor"
    }
  ]
}

Solution

Check the “appId” parameter in the request. Following are the list of valid appIds,

PREREGISTRATION =prereg

IDA=ida

REGISTRATION=registrationclient

REGPROC=regproc

PARTNER=partner

RESIDENT=resident

ADMIN=admin

They are defined as global properties in “application-<ENV>.properties

Filter by label

There are no items with the selected labels at this time.