Documentation
¶
Overview ¶
Package authctx provides a small shared context-key registry so that gRPC service handlers (under pkg/api/service) can read the authenticated subject stamped onto the context by the server-side auth interceptor (under pkg/api/server) without creating an import cycle.
The server interceptor calls WithSubject; service handlers call SubjectFrom.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubjectFrom ¶
SubjectFrom returns the subject ID previously attached via WithSubject, or the empty string if none is present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.