Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log more information on SigningKeyNotFoundException in the ledger #11069

Open
realvictorprm opened this issue Sep 29, 2021 · 1 comment
Open
Assignees
Labels
component/ledger Sandbox and Ledger API

Comments

@realvictorprm
Copy link
Contributor

Coming from this forum post I would like to have extended logs on occurence of the SigningKeyNotFoundException.
Right now the first log statement is:

00:03:29.862 [ForkJoinPool-4-worker-1] WARN  c.d.ledger.api.auth.AuthServiceJWT$ - Authorization error: Could not verify JWT token: com.auth0.jwk.SigningKeyNotFoundException: Cannot obtain jwks from url http://someurl.com/jwt_auth0.html

The statement Cannot obtain jwks from url is ambigious to me, in my understanding it could either mean:

  1. The JWKS url is not working for the ledger, e.g. not reachable, wrong response format etc.
  2. The kid from the token cannot be found in the JWKS

It would be great if we could log more specifically which of these two cases occured, this would help with fixing issues regarding the authorization setup.

@realvictorprm realvictorprm added the component/ledger Sandbox and Ledger API label Sep 29, 2021
@mziolekda
Copy link
Contributor

This error comes from 3rd party auth0 code. We have no influence over the format or the amount of data provided by this library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ledger Sandbox and Ledger API
Projects
None yet
Development

No branches or pull requests

2 participants