How to get Access token for FHIR Programatically .

Not applicable

.We are Able to Connect the FHIR API with Basic Authorization User name and pass word using Jersey Client .We are able to bring the complete response using the access token which we are hard coding for the time being .But the Problem is how to retrieve the access token with in expiration 'x' minutes

0 3 202
3 REPLIES 3

@Vamsi Krishna Kamal Adivi , Welcome to Apigee Community.

Are you talking about https://healthapix.apigee.com/ APIs ?

Thanks Anil .yes that is correct .. I am working on HealthAPix

@Vamsi Krishna Kamal Adivi ,

As per documentation of FHIR API, It supports OAuth client credentials grant type. Seems like they don't have refresh token support.

You just need to make one more Access token generation call to retrieve new access token within expiration 'x' minutes. Both tokens will be valid. You can find the API to generate access token here.

Hope it helps. Keep us posted if any.