#4307 pagure should provide more helpful error message for invalid tokens
Closed: Fixed 5 years ago by pingou. Opened 5 years ago by ttomecek.

Invalid or expired token. Please visit https://pagure.io/settings#api-keys to get or renew your API token.

I'm sorry but this doesn't tell me anything. Would be lovely if there was an endpoint which could tell me what perms are on the specific token. I know that I can check that in web ui, but that's not too helpful when you are building tooling on top of pagure's api.

And when using a token, I'd love to know that my token is not allowed to do X, instead of getting that generic error message.


Metadata Update from @pingou:
- Issue set to the milestone: 5.5

5 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #4339 Merged 5 years ago