static

package
v0.1.46 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func New

func New(tokens []Token) *Authenticator

func (*Authenticator) AdapterCredential added in v0.1.7

func (a *Authenticator) AdapterCredential(ctx context.Context, _ string, principal auth.Principal, sessionID string) (int64, int64, bool, error)

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(_ context.Context, token string) (auth.Principal, error)

func (*Authenticator) Authorize

func (a *Authenticator) Authorize(_ context.Context, principal auth.Principal, scope auth.Scope) error

type Token

type Token struct {
	Token   string
	Subject string
	Scopes  []auth.Scope
}

Jump to

Keyboard shortcuts

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