yury.starav
01/24/2023, 3:44 AMresp is HTTP/2.0 400 Bad Request
Content-Length: 84
Cache-Control: no-store, no-cache, must-revalidate
Content-Security-Policy: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
Content-Type: application/json; charset=utf-8
Date: Tue, 24 Jan 2023 03:37:36 GMT
Pragma: no-cache
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Ratelimit-Limit: 100
X-Ratelimit-Remaining: 99
X-Ratelimit-Reset: 1674532238
X-Xss-Protection: 1; mode=block
{"error":"invalid_request","error_description":"Invalid client assertion signature"}rahul1
01/24/2023, 3:46 AMrahul1
01/24/2023, 3:47 AMyury.starav
01/24/2023, 3:52 AMrahul1
01/24/2023, 3:58 AMjwtVerify() function (https://github.com/medplum/medplum/blob/7f93a0b6efa376fd37aaf290c8d500816c5c6e7c/packages/server/src/oauth/token.ts#L335-L345)
That function is not something we write, but comes from the Jose library (https://github.com/panva/jose/blob/main/docs/functions/jwt_verify.jwtVerify.md#readme)rahul1
01/24/2023, 3:59 AMjwtVerify() locally, to make sure that you expect the verification to match properly, and then we can continue debugging from thereyury.starav
01/24/2023, 4:00 AMrahul1
01/24/2023, 4:00 AMrahul1
01/24/2023, 4:02 AMyury.starav
01/24/2023, 4:04 AM