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

Handle missing/ bad/ expired/ etc.. authorization tokens #1

Open
WilliamMcCumstie opened this issue Feb 27, 2020 · 0 comments
Open
Labels
bug Something isn't working on hold

Comments

@WilliamMcCumstie
Copy link
Contributor

If the jwt_token field is missing within the config the following is returned. Unfortunately the exact same error will be issued if the token is syntactically invalid or expired.

# bin/flight-cu balance
flight-cu: Unrecoverable server-side error encountered (500)

As setting the jwt_token is document in etc/config.yaml.reference, specific error handling for missing tokens is not required. Due to the 500 status code, it is not possible to determine exactly why a token isn't valid.

This issue is on hold until the 500 is fixed to either 401 or 403 (maybe 400/404) as appropriate.

@WilliamMcCumstie WilliamMcCumstie added bug Something isn't working on hold labels Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working on hold
Projects
None yet
Development

No branches or pull requests

1 participant