OPT in - Getting error as "Authentication is required"

138 views
Skip to first unread message

Kishore Kumar Chakali

unread,
Nov 20, 2019, 3:02:04 AM11/20/19
to Developer Group for QPP APIs
Hi,

I have passed my Registry JWT(2019)  as a Bearer Token in Authorization section and when I tried to send a post method to https://preview.qpp.cms.gov/api/eligibility/secure/opt-in?year=2019  getting the following error message.
 
Input: 
{
  "tin": "000456789",
  "optIn": true
}

Error Message:
{
    "error": {
        "message": "Authentication is required",
        "type": "JsonWebTokenError"
    }
}

Thanks
Kishore 

Hari Krishna Jubburu

unread,
Nov 27, 2019, 9:25:03 AM11/27/19
to Kishore Kumar Chakali, Developer Group for QPP APIs
Kishore,

I am also facing the same issue when tried using the preview Opt-In eligibility API(https://preview.qpp.cms.gov/api/eligibility/secure/opt-in?year=2019) with our developer preview registry token(2019) and followed the steps documented in https://cmsgov.github.io/qpp-eligibility-docs/opt-in

But, we are successful in using the same developer registry token(2019) for submissions(https://preview.qpp.cms.gov/api/submissions/{path}).

Can anyone help me?



Best Regards
Hari Krishna 


--
You received this message because you are subscribed to the Google Groups "Developer Group for QPP APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qpp-apis+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qpp-apis/CAD3wDDiuemxJAus2yeV9gtWa%2BP%3DgBNrgczZpwm8X%3D5DpmAUELw%40mail.gmail.com.

Kishor Rasure

unread,
Dec 5, 2019, 1:57:46 AM12/5/19
to Developer Group for QPP APIs
Hi Sarah,
Can you please update urgently? We are also facing the same issue.
Are we referring to the correct URL? Since documentation is having URL as https://qpp.cms.gov/api/eligibility/secure/opt-in?year=2019  
Also please let us know if we don't need to use the preview URL then how can we use this in our development env?

On Wednesday, November 27, 2019 at 7:55:03 PM UTC+5:30, Hari Krishna Jubburu wrote:
Kishore,

I am also facing the same issue when tried using the preview Opt-In eligibility API(https://preview.qpp.cms.gov/api/eligibility/secure/opt-in?year=2019) with our developer preview registry token(2019) and followed the steps documented in https://cmsgov.github.io/qpp-eligibility-docs/opt-in

But, we are successful in using the same developer registry token(2019) for submissions(https://preview.qpp.cms.gov/api/submissions/{path}).

Can anyone help me?



Best Regards
Hari Krishna 


On Wed, Nov 20, 2019 at 1:32 PM Kishore Kumar Chakali <kishore...@mwebware.com> wrote:
Hi,

I have passed my Registry JWT(2019)  as a Bearer Token in Authorization section and when I tried to send a post method to https://preview.qpp.cms.gov/api/eligibility/secure/opt-in?year=2019  getting the following error message.
 
Input: 
{
  "tin": "000456789",
  "optIn": true
}

Error Message:
{
    "error": {
        "message": "Authentication is required",
        "type": "JsonWebTokenError"
    }
}

Thanks
Kishore 

--
You received this message because you are subscribed to the Google Groups "Developer Group for QPP APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qpp-...@googlegroups.com.

Kishor Rasure

unread,
Dec 6, 2019, 4:18:29 AM12/6/19
to Developer Group for QPP APIs
Hi Sarah,

We are now able to hit the API with our QR key however not with QCDR key.
With QR key we are getting the following error:
{
    "data": [
        {
            "tin""000456789",
            "error": {
                "code"404,
                "name""NotFoundError",
                "message""TIN not found."
            }
        }
    ]
}

Is there any test TIN & NPI combination available for individual & group? If not available, can you let us know how to create test data?

Abeeb Ayodeji

unread,
Dec 10, 2019, 9:51:35 AM12/10/19
to Developer Group for QPP APIs

Chris Rowland

unread,
Dec 18, 2019, 9:41:16 AM12/18/19
to Developer Group for QPP APIs
I'm still having the issue originally discussed in this thread with my Registry QRDA JWT Token not working for this API. The token works fine for submissions but is rejected on this API with:

{
"error": {
"message": "Authentication is required",
"type": "JsonWebTokenError"
}
}

Is there authentication required in addition to the QRDA token?

Abeeb Ayodeji

unread,
Dec 18, 2019, 3:07:10 PM12/18/19
to Developer Group for QPP APIs
Good Afternoon Chris,

Please follow this link to a post that helped others with this similar issue. 


Please let me know if this solves your issue and if you have any other questions. Thank you!

Warmest Regards,

Abeeb Ayodeji

Hari Krishna Jubburu

unread,
Dec 19, 2019, 7:08:12 AM12/19/19
to Abeeb Ayodeji, Developer Group for QPP APIs
Hi Abeeb,

I'm still facing the same issue.  
"message""Authentication is required",  
"type""JsonWebTokenError".

So, I would like to provide detailed steps/scenarios that I have performed. Please correct me, where I was wrong.

Creating a test data using Test Data service


Step 1: Success
Invoke the scenarios endpoint https://preview.qpp.cms.gov/api/synthetic-data/scenarios using registry bearer token
Result:
  1. Received the list of scenario's available --
Step 2:  Success with warning
Invoke the reserve endpoint(https://preview.qpp.cms.gov/api/synthetic-data/reserve) using registry bearer token by selecting a scenario type.
Result: 
  1. Received the test NPI and TIN data consisting of roles security official and staff
  2. However, found a statement in the output that " "provisioningDetails""Your passwords were not set correctly, please manually set user passwords."," . Ignored it and moved forward

Step 3: Failed
Result:
  1. Received the error message:  "ExpressionAttributeValues contains invalid value: Supplied AttributeValue is empty, must contain exactly one of the supported datatypes for key :login
Step 4: Failed 
Invoke the /resetPassword to change the password
Result:
  1. Received the error message:
{
    "statusCode"400,
    "message""unknown error resetting user password"
}

Step 5: Failed 
Invoke the POST/GET method for OPT-In(https://preview.qpp.cms.gov/api/eligibility/secure/opt-in?year=2019) using the test NPI/TIN received from step 1 with my registry bearer token
Result:
  1. Received the error message:
 {
    "error": {
        "message""Authentication is required",
        "type""JsonWebTokenError"
    }
}
Step 6:  Failed 
When I tried to discard using https://preview.qpp.cms.gov/api/synthetic-data/id/discard
Result: 
  1. Received the error message "message""you are not the owner of the reserved data set"


Question:
  1. Do I need to perform any authentication process for my token or the test accounts provided? Please guide me so that I can be on the right path.

By the way, when I tried to authenticate my test accounts using https://preview.qpp.cms.gov/api/auth/authn. Received the error message as "loginStatus""LOCKED_OUT"
Any help from the group is highly appreciated.

Best Regards
Hari Krishna 


To unsubscribe from this group and stop receiving emails from it, send an email to qpp-apis+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qpp-apis/a79b131f-f05a-477d-8682-a90690b288a3%40googlegroups.com.

Hari Krishna Jubburu

unread,
Dec 23, 2019, 8:30:49 AM12/23/19
to Abeeb Ayodeji, Sarah White, Developer Group for QPP APIs
Am I following the correct order?

Best Regards
Hari Krishna 


Reply all
Reply to author
Forward
0 new messages