Explanation of error messages

206 views
Skip to first unread message

bu...@cetinburak.com

unread,
Jan 3, 2019, 10:51:56 AM1/3/19
to Developer Group for CMS Blue Button API
Hi,

Is there any place that explains the error messages?

The exactly the same call that was working yesterday returns "Authentication credentials were not provided" today. And I can't find the error message online.

Thanks

Ma...@ekivemark.com

unread,
Jan 31, 2019, 12:32:20 AM1/31/19
to Developer Group for CMS Blue Button API
Were you using the access token to make the call. This is usually the message that is seen when the Access Token is either not supplied or has expired.
If the access token has expired it needs to be exchanged for a new access token using the refresh token.

Regards

- Mark Scrimshire 
Blue Button 2.0 Team

Jeong Lim

unread,
Nov 6, 2020, 11:34:17 AM11/6/20
to Developer Group for CMS Blue Button API
I continually get this error while using the implicit flow. 
I'm calling this endpoint - https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/-20140000008325

with the following curl command

curl --header "Authorization: Bearer oKmvvVTstGPDDUbure9NR63P10kgTb" https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/-20140000008325


Is there something I'm missing?

Thanks in advance

thakkar kajal

unread,
Apr 26, 2021, 9:49:04 AM4/26/21
to Developer Group for CMS Blue Button API
I am getting this same error , it was coming data previously  and now suddenly  data is not coming , refresh_token should not expire , then what can be issue
i am using this API 
https://api.bluebutton.cms.gov/v1/fhir/ExplanationOfBenefit

please help me in this case if any  one knows 

Thanks
Kajal

Ashish Narnoli

unread,
Oct 7, 2021, 8:20:02 AM10/7/21
to Developer Group for CMS Blue Button API
Hi,

I'm trying to access Open API like below but every time it returns "{ "detail": "Authentication credentials were not provided." }"

curl -X 'GET' \ 'https://sandbox.bluebutton.cms.gov/v2/fhir/Coverage/' \ -H 'accept: application/json' \ -H 'Authorization: Bearer LzRgKRFsz6CYHUYMhpyb27kNbCjTLh'

Can some suggest what I'm doing wrong?

Muhammad hanif

unread,
Oct 29, 2021, 2:52:57 AM10/29/21
to Developer Group for CMS Blue Button API
Hi  Mark Scrimshire,
Could you please share sample or doc to get new access token using refresh token, if previous one is expired. Currently there is not sample call available on blue button docs for getting new access token if it is expired. Instead we need to repeat whole process of authenticating beneficiary in order to get new token.

Thanks

Muhammad hanif

unread,
Nov 2, 2021, 10:02:24 AM11/2/21
to Developer Group for CMS Blue Button API
FYI
Following is the curl call to refresh access token if it is expired. Thanks to  Brady Fausett.

Token Refresh CURL Example:BB_SERVER="<BB2 sandbox or prod URL>"
BB_CLIENT_ID="<your app's client ID>"
BB_CLIENT_SECRET="<your app's client SECRET>"REFRESH_TOKEN="<your refresh token associated with a previously granted access token>"curl -s -w "%{http_code}" -X POST "${BB_SERVER}/v1/o/token/" \
    -u "${BB_CLIENT_ID}:${BB_CLIENT_SECRET}" \
    -d "grant_type=refresh_token&client_id=${BB_CLIENT_ID}&refresh_token=${REFRESH_TOKEN}"EXAMPLE RETURN FROM CURL COMMAND:    {"access_token": "wlRtbVkXzUdE9Kcjc8wWnpRmJ7KuuC", "expires_in": 36000, "token_type": "Bearer", "scope": "patient/ExplanationOfBenefit.read patient/Coverage.read", "refresh_token": "gzKxj0JkKamuaOWZRaIAJyfL3e9CZW", "patient": "-19990000000003"}200

Ashish Narnoli

unread,
Nov 11, 2021, 3:33:00 PM11/11/21
to Developer Group for CMS Blue Button API
Thanks Muhammad - It worked for me.
Reply all
Reply to author
Forward
0 new messages