I was trying to secure the fhir server using this repo https://github.com/AriHealth/hapi-fhir-jpaserver-oauth without OAUTH_ENABLE=true it works but when I enable OAUTH_ENABLE=true I got below error. I used below steps
After oauth_enable set to true I tried building the app with docker-compose. Even if I use the correct token and endpoint there is 404 null error.
Step to reproduce:
1: set OAUTH_ENABLE=true in .env and remove comment (OAUTH_ENABLE and OAUTH_URL) from docker-compose.yml
2: docker-compose up -d.
3: create realm, client and user as stated on README.
4: fetch token from POST localhost:8081/login
5: use token with header Authorization Bearer token. I tried it in postman with endpoint
GET localhost:8080/baseDstu3/Patient
The error response is as follows.
{
“resourceType”: “OperationOutcome”,
“text”: {
“status”: “generated”,
“div”: "
},
“issue”: [
{
“severity”: “error”,
“code”: “processing”,
“diagnostics”: “404 null”
}
]
}
I am a newbie to fhir