Unable to validate JWT

77 views
Skip to first unread message

Stephen Laich

unread,
Jul 28, 2022, 2:50:13 PM7/28/22
to Data at the Point of Care (DPC) Community
I am using the following from the documentation in order to validate the JWT:

curl.exe -v https://sandbox.dpc.cms.gov/api/v1/Token/validate ^
     -H 'Accept: application/json' ^
     -H 'Content-Type: text/plain' ^
     -X POST ^
     -d "{content of JWT}"

but I keep getting a 415 (unsupported media type) error.  Any help would be appreciated.   I am simply copying and pasting the JWT text string generated by the DPC JWT Tool where {content of JWT} appears above.  The documentation says it must be a signed JWT - how does a JWT get signed?

Data at the Point of Care (DPC) Community

unread,
Aug 2, 2022, 1:43:21 PM8/2/22
to Data at the Point of Care (DPC) Community

Hi Stephen,

Thanks for reaching out! Please provide a date range of when you were seeing the 415 error so our engineers can investigate?

Also, please confirm: you are not including the curly braces { } when submitting the actual text string in the request, correct?


curl.exe -v https://sandbox.dpc.cms.gov/api/v1/Token/validate ^

    -H 'Accept: application/json' ^
    -H 'Content-Type: text/plain' ^
    -X POST ^
     -d "{content of JWT}"


To answer your other question:

The documentation says it must be a signed JWT - how does a JWT get signed?

A signed JWT is one that has been signed with the customer’s public key. The online tool they’ve used to generate the JWT signs it for them.

For more detailed information, please visit the DPC documentation page (https://dpc.cms.gov/docsV1). JWT’s are covered in step 4 of the Authorization section.

We appreciate your patience while we look into this issue, please contact us with any additional questions.

Best,

The DPC Team

joey lipoff

unread,
Sep 16, 2022, 2:29:23 PM9/16/22
to Data at the Point of Care (DPC) Community
I get the error could not reseolve host and I am doing the exact same thing but without the {} in the -d line. Its does this
*Closing connection 6
curl: (6) Could not resolve host: {first two lines of my JWT}

Can I get on a zoom with someone?

Reply all
Reply to author
Forward
0 new messages