Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 096187a

Browse files
committed
fixup! chore: add custom samesite options to auth cookies
1 parent 7cdfbfe commit 096187a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

coderd/httpmw/authz.go

-15
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,3 @@ func AsAuthzSystem(mws ...func(http.Handler) http.Handler) func(http.Handler) ht
3535
})
3636
}
3737
}
38-
<<<<<<< Updated upstream
39-
=======
40-
41-
// RecordAuthzChecks enables recording all the authorization checks that
42-
// occurred in the processing of a request. This is mostly helpful for debugging
43-
// and understanding what permissions are required for a given action without
44-
// needing to go hunting for checks in the code, where you're quite likely to
45-
// miss something subtle or a check happening somewhere you didn't expect.
46-
func RecordAuthzChecks(next http.Handler) http.Handler {
47-
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
48-
r = r.WithContext(rbac.WithAuthzCheckRecorder(r.Context()))
49-
next.ServeHTTP(rw, r)
50-
})
51-
}
52-
>>>>>>> Stashed changes

0 commit comments

Comments
 (0)