<#2605 [Core feature] Improved and detailed error ...
# flyte-github
a
#2605 [Core feature] Improved and detailed error messages on JWT validation failures Issue created by katrogan Motivation: Why do you think this is important? When flyteadmin fails JWT token validation, the request fails with
Copy code
Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken
but this is ambiguous. For example, if the audience is misconfigured, flyteadmin logs
Copy code
"Failed to parse Access Token from context. Will attempt to find IDToken. Error: invalid audience
which is far more useful for understanding misconfigured deployments and diagnosing what went wrong Goal: What should the final outcome look like, ideally? Flyteadmin auth failures should include more details in error message responses Describe alternatives you've considered N/A Propose: Link/Inline OR Additional context No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte