LibreHealthIO / lh-ehr-fhir-api

FHIR API to LibreEHR Package for Laravel
MIT License
12 stars 6 forks source link

Attempt to access unauthorized endpoint throws exception #33

Closed kchapple closed 8 years ago

kchapple commented 8 years ago

To reproduce, browse to https://gponline-fhir.vu2vu.com/fhir/Appointment?patient=1 without siging in.

Expected: Response should be an OperationOutcome with a 401 Unauthorized and potentially OperationOutcome error message.

Actual: redirect to /login route and get exception screen shot 2016-09-22 at 9 46 00 am

Leo24 commented 8 years ago

To get response { "error": "Unauthenticated." } set your headers using Postman Accept header to application/json Content-Type header to application/json http://storage6.static.itmages.com/i/16/0926/h_1474890624_3476390_568cdab974.png Also added response for login route on Unauthorised request in browser https://github.com/LibreEHR/fhir/pull/41