mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: merge authorization contexts (#12816)
* chore: merge authorization contexts Instead of 2 auth contexts from apikey and dbauthz, merge them to just use dbauthz. It is annoying to have two. * fixup authorization reference
This commit is contained in:
@ -133,7 +133,7 @@ type Options struct {
|
||||
// after a successful authentication.
|
||||
// This is somewhat janky, but seemingly the only reasonable way to add a header
|
||||
// for all authenticated users under a condition, only in Enterprise.
|
||||
PostAuthAdditionalHeadersFunc func(auth httpmw.Authorization, header http.Header)
|
||||
PostAuthAdditionalHeadersFunc func(auth rbac.Subject, header http.Header)
|
||||
|
||||
// TLSCertificates is used to mesh DERP servers securely.
|
||||
TLSCertificates []tls.Certificate
|
||||
|
Reference in New Issue
Block a user