Skip to content

Commit

Permalink
fix: CSRF token is required when using the Revoke Session API endpoint (
Browse files Browse the repository at this point in the history
#839)

Closes #838
  • Loading branch information
dbhobbs authored Nov 23, 2020
1 parent 09c12a2 commit d3218a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const (

func (h *Handler) RegisterPublicRoutes(public *x.RouterPublic) {
h.r.CSRFHandler().ExemptPath(RouteWhoami)
h.r.CSRFHandler().ExemptPath(RouteRevoke)

for _, m := range []string{http.MethodGet, http.MethodHead, http.MethodPost, http.MethodPut, http.MethodPatch,
http.MethodDelete, http.MethodConnect, http.MethodOptions, http.MethodTrace} {
Expand Down

0 comments on commit d3218a0

Please sign in to comment.