Question Yash Prajapati · Mar 3, 2022

Using FHIR Server with OAuth 2.0

Hello,

I am trying to get FHIR Resource using OAuth 2.0 . I get access_token sucessfully but when I use this token i get this type of error in postman. It is showing 401 Unauthorized please suggest any solution.

Thank You  

Product version: IRIS 2021.1

Comments

Paul Lomayesva · Mar 15, 2022

InterSystems FHIR Server does not support accepting an OAuth 2.0 access token via request URL parameter.

For the FHIR Server, the only supported vehicle for the access token is the HTTP Authorization header ("Bearer", plus space, plus the token string).

0
Piyush Adhikari  Oct 4, 2023 to Paul Lomayesva

Hi Paul,

I have come across same issue. I can successfully generate an access token as you can se in the following image:


And I am also supplying the access token as Bearer token for authorization as in the image below:

But, I am still getting the '401 Unauthorized' error.

What shall the cause be?

0
Paul Lomayesva  Oct 5, 2023 to Piyush Adhikari

Hi Piyush,

Is the token an opaque token, or is it a JWT? FHIRServer currently does not handle opaque tokens.

Best regards,

Paul

0