internal

package
v0.31.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPolicyContext

func DefaultPolicyContext(policy *middleware.Policy) *api.PolicyContext

func DefaultPolicyInstance

func DefaultPolicyInstance(policy *middleware.Policy) *api.PolicyInstance

func ToPolicyPath

func ToPolicyPath(path string) string

func ValueOrEmpty

func ValueOrEmpty(ctx context.Context, key interface{}) string

Types

type Identity

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

func NewIdentity

func NewIdentity(identityType api.IdentityType, identity string) *Identity

func (*Identity) Context

func (id *Identity) Context() *api.IdentityContext

func (*Identity) ID

func (id *Identity) ID(identity string) middleware.Identity

func (*Identity) IsJWT

func (id *Identity) IsJWT() bool

func (*Identity) IsManual added in v0.30.0

func (id *Identity) IsManual() bool

func (*Identity) IsSubject

func (id *Identity) IsSubject() bool

func (*Identity) JWT

func (id *Identity) JWT() middleware.Identity

func (*Identity) Manual added in v0.30.0

func (id *Identity) Manual() middleware.Identity

func (*Identity) None

func (id *Identity) None() middleware.Identity

func (*Identity) Subject

func (id *Identity) Subject() middleware.Identity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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