auth

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerAssertion

type ConsumerAssertion struct {
	// ApplicationID is the consumer application the PDP authorizes. It is the
	// token's client_id: the PDP allow-list is keyed by client_id (see issue #447).
	ApplicationID string
	ClientID      string // Mapped from 'client_id'
	Subscriber    string // Mapped from 'sub'
}

ConsumerAssertion identifies the data consumer that sent a query.

func ConsumerFromContext added in v0.5.0

func ConsumerFromContext(ctx context.Context) *ConsumerAssertion

ConsumerFromContext returns the consumer authenticated by internal/authn's middleware, or nil when the request was not authenticated.

Jump to

Keyboard shortcuts

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