GitHub user dosubot[bot] added a comment to the discussion: Redirect URl
<!-- Answer --> The "Invalid JSON Web Key Set" error suggests that there might be an issue with the format or content of the JWKS being fetched from the `jwks_uri`. Here are a few steps to troubleshoot this issue: 1. **Verify JWKS Content**: Ensure that the JWKS returned from the `jwks_uri` is in the correct format. It should be a JSON object containing a "keys" array, where each key is a JSON object with the necessary fields like "kty", "kid", "use", "n", and "e". 2. **Check Key Usage**: Make sure that the keys in the JWKS are intended for the purpose of verifying tokens. The "use" field should typically be set to "sig" for signature verification. 3. **Inspect Key IDs**: Ensure that the "kid" (key ID) in the JWKS matches the "kid" in the JWT token header. A mismatch can lead to verification failures. 4. **Network and Access**: Since you've confirmed that the `jwks_uri` is reachable, double-check that there are no intermittent network issues or access restrictions that might affect the retrieval of the JWKS. 5. **Logging and Debugging**: Increase the logging level in Superset to capture more detailed information about the error. This might provide additional insights into what specifically is considered invalid in the JWKS. If these steps do not resolve the issue, you may need to further investigate the JWKS content or consult the documentation of your identity provider for any specific requirements or configurations related to the JWKS. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/274f2573-873c-4f48-9e69-8fe80188771b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/274f2573-873c-4f48-9e69-8fe80188771b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/274f2573-873c-4f48-9e69-8fe80188771b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/274f2573-873c-4f48-9e69-8fe80188771b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/274f2573-873c-4f48-9e69-8fe80188771b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/274f2573-873c-4f48-9e69-8fe80188771b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/274f2573-873c-4f48-9e69-8fe80188771b?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/32883#discussioncomment-12666574 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
