anon

package
v1.25.2 Latest Latest
Warning

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

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

Documentation

Overview

Package anon identifies anonymous callers (trust center and questionnaire) from a request context. It depends only on the iam auth package so it can be imported by any layer - interceptors, schema mixins, privacy policy, hooks, and schemautil - without creating an import cycle

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAnonymous

func IsAnonymous(ctx context.Context) bool

IsAnonymous reports whether ctx carries any anonymous-role caller

func IsQuestionnaire

func IsQuestionnaire(ctx context.Context) bool

IsQuestionnaire reports whether ctx carries an anonymous questionnaire caller

func IsTrustCenter

func IsTrustCenter(ctx context.Context) bool

IsTrustCenter reports whether ctx carries an anonymous trust center caller

func TrustCenterScope

func TrustCenterScope(ctx context.Context) (tcID, orgID string, ok bool)

TrustCenterScope reports whether ctx carries an anonymous trust center caller A caller qualifies only when it has the anonymous role, holds CapTrustCenterAnonymous, and carries a non-empty active trust center id in context

Types

This section is empty.

Jump to

Keyboard shortcuts

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