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:
When a request to the garden backend fails with a 403 status code, the error message should direct the user to logout and login again.
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 bygarden-ai login
to force another globus auth login flow.Acceptance criteria: