fix bug in key server on get creds & HATEOAS links