JWT auth error has no flow to get a new token #1104
Unanswered
Chris Nolan.ca (ChrisNolan)
asked this question in
Q&A
Replies: 1 comment
|
Here's a fast AI summary of the issue ... take it with a grain of salt :shudder: JWT Token Error Masking Issue - FedEx IntegrationProblem SummaryWhen FedEx authentication fails with "Invalid CXS JWT", Karrio's error response masks the underlying JWT issue by returning a generic "service unavailable" error instead. This makes debugging JWT/auth problems difficult. Current Flow & Root Causes
Current WorkaroundsUsers can manually force token refresh by:
Suggested Fixes (in priority order)Short-term (Low effort):
Medium-term (Medium effort):
Long-term (Higher effort, broader impact):
Related Files
Questions for Team
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In follow up to #1103 scanning the code it seems like there isn't any trigger when a token is given as 'bad' (e.g. via the error_description seen in that other post). A no code solution was to disable that carrier connection and re-enable it which seems to allow the token cache to get a new one, but I'm thinking ideally the auth flow should have this ability to get a new token on error built in? What are others thoughts on that improvement?
(Note: for how I got the bad token... I think it was related to switching between test mode and back again... so there might be another issue with the token cache not fully keyed by the mode perhaps or something? don't need to debug that atm).
All reactions