authorizationv2

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: BSD-3-Clause-Clear Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForClientID

func ForClientID(clientID string) *authorizationv2.EntityIdentifier

ForClientID returns an EntityIdentifier for a single subject entity identified by client ID.

func ForEmail

func ForEmail(email string) *authorizationv2.EntityIdentifier

ForEmail returns an EntityIdentifier for a single subject entity identified by email address.

func ForToken

ForToken returns an EntityIdentifier that resolves the entity from the given JWT. The authorization service will parse the token to derive the entity chain.

func ForUserName

func ForUserName(username string) *authorizationv2.EntityIdentifier

ForUserName returns an EntityIdentifier for a single subject entity identified by username.

func WithRequestToken

func WithRequestToken() *authorizationv2.EntityIdentifier

WithRequestToken returns an EntityIdentifier that instructs the authorization service to derive the entity from the request's Authorization header token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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