diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-28 14:26:19 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-28 14:26:19 -0600 |
| commit | e9546b40c8befabda26c1598c124a6ee2a8d2b8f (patch) | |
| tree | c7b09c0c1c821b516e56b5ac3637dc07dc97d039 /pkg | |
| parent | 1de6a34a55c2e8b7d50945984acb45e7809f6a37 (diff) | |
refactor: always provide a user in the request context
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/authz/check_service.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/authz/check_service.go b/pkg/authz/check_service.go index 641ba92..9db32d0 100644 --- a/pkg/authz/check_service.go +++ b/pkg/authz/check_service.go @@ -40,6 +40,7 @@ func NewCheckService() *CheckService { } func (svc *CheckService) Check(ctx context.Context, request *auth.CheckRequest) (*auth.CheckResponse, error) { + log.WithFields(ctx, log.Fields{"headers": request.Attributes.Request.Http.Headers}) if svc.isAllowed(ctx, request) { return svc.OK(ctx), nil } |
