Garden-AI / garden

https://garden-ai.readthedocs.io
MIT License
21 stars 4 forks source link

better error message when tokens need to be refreshed #490

Open OwenPriceSkelly opened 5 months ago

OwenPriceSkelly commented 5 months ago

If you updated garden recently, you may get an error like: (garden_env_v3) ryanjacobs@vpn-pa-full-ptr-91 ~ % garden-ai garden register-doi '10.26311/ep98-br79' Request to Garden backend failed. Status code 403. {"detail":"Missing Scope: https://auth.globus.org/scopes/0948a6b0-a622-4078-b0a4-bfd6d77d65cf/action_all"}

The fix for this is almost always to refresh your tokens with garden-ai logout followed by garden-ai login to force another globus auth login flow.

Acceptance criteria: