Documentation ¶
Overview ¶
Package security describes the authentication technology that the middleware investigates to autofill the principal in a log request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FromRawJWT ¶
type FromRawJWT struct {
FromRawJWT []*v1alpha1.FromRawJWT
}
FromRawJWT contains the information needed to retrieve the principal from a raw JWT.
func (*FromRawJWT) RequestPrincipal ¶
func (j *FromRawJWT) RequestPrincipal(ctx context.Context) (string, error)
RequestPrincipal extracts the JWT principal from the grpcmetadata in the context. This method does not verify the JWT.
Click to show internal directories.
Click to hide internal directories.