fixes
This commit is contained in:
parent
cd7695e2a9
commit
c56d5e5f9e
2 changed files with 29 additions and 1 deletions
|
@ -33,7 +33,7 @@ func revocationHandler(revoker Revoker) func(http.ResponseWriter, *http.Request)
|
|||
func Revoke(w http.ResponseWriter, r *http.Request, revoker Revoker) {
|
||||
token, _, clientID, err := ParseTokenRevocationRequest(r, revoker)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusUnauthorized)
|
||||
RevocationRequestError(w, r, err)
|
||||
return
|
||||
}
|
||||
tokenID, subject, ok := getTokenIDAndSubjectForRevocation(r.Context(), revoker, token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue