auth

package
v0.0.0-...-d364ca2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package auth defines Soro's authentication-neutral request principal context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActorID

func ActorID(ctx context.Context) *uuid.UUID

func WithPrincipal

func WithPrincipal(ctx context.Context, principal Principal) context.Context

Types

type Principal

type Principal interface {
	ID() uuid.UUID
}

func PrincipalFromContext

func PrincipalFromContext(ctx context.Context) (Principal, bool)

Jump to

Keyboard shortcuts

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