#4339 Provide more information about invalid tokens
Merged by pingou. Opened by pingou.
api_token_info  into  master

Download 4339.patch

We now include an "errors" field in the JSON data returned that specifies
the reason why the token is invalid (entirely invalid, expired, missing
ACLs).

Unit-tests are also adjusted for this.

Fixes https://pagure.io/pagure/issue/4307

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

rebased onto 359ddba7136eac1eec1d401edb25493e08138fb8

:thumbsup:

rebased onto 5537adccdd52c5e48358003d023a3c1779643064

rebased onto 0a54a297ae88632a1313861232475ff905078853

Pull-Request has been merged by pingou

Metadata