Commit a4cb131f authored by gabriel.zachmann's avatar gabriel.zachmann
Browse files

fix token revocation community feature not updating as failed, if token revocation fails

parent aa480733
......@@ -57,5 +57,9 @@ func TokenRevocation(c *provider.ClientConfig, token sstring.SensitiveString, to
if comm != nil {
comm.AddResponseToLast(resp, string(body))
}
if resp.StatusCode < 200 || resp.StatusCode >= 400 {
err = fmt.Errorf("%d: %s: %s", resp.StatusCode, resp.Status, body)
return
}
return
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment