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.
Click to show internal directories.
Click to hide internal directories.