log

package
v0.10.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2018 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package log provides a request logging filter, usable also for audit logging. Audit logging is showing who did a request in case of OAuth2 provider returns a "uid" key and value.

Index

Constants

View Source
const (
	// AuditLogName is the filter name seen by the user
	AuditLogName = "auditLog"
	// AuthUserKey is used by the auth package to set the user
	// information into the state bag to pass the information to
	// the auditLog filter.
	AuthUserKey = "auth-user"
	// AuthRejectReasonKey is used by the auth package to set the
	// reject reason information into the state bag to pass the
	// information to the auditLog filter.
	AuthRejectReasonKey = "auth-reject-reason"
	// UnverifiedAuditLogName is th filtername seend by the user
	UnverifiedAuditLogName = "unverifiedAuditLog"

	UnverifiedAuditHeader = "X-Unverified-Audit"
)

Variables

This section is empty.

Functions

func NewAuditLog

func NewAuditLog(maxAuditBody int) filters.Spec

NewAuditLog creates an auditLog filter specification. It expects a maxAuditBody attribute to limit the size of the log. It will use os.Stderr as writer for the output of the log entries.

spec := NewAuditLog(1024)

func NewUnverifiedAuditLog added in v0.10.1

func NewUnverifiedAuditLog() filters.Spec

NewUnverifiedAuditLog logs "Sub" of the middle part of a JWT Token.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL