context

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package context provides utilities for managing authentication information in context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticatedPrincipalFromContext

func AuthenticatedPrincipalFromContext(ctx context.Context) string

AuthenticatedPrincipalFromContext returns the principal ID from the provided context. It returns an empty string if no principal is found.

func NewContextWithAuthenticatedPrincipal

func NewContextWithAuthenticatedPrincipal(ctx context.Context, principalId string) context.Context

NewContextWithAuthenticatedPrincipal returns a new context with the provided principal ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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