auth

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultAccessLevelAttributeKey   = "access-level"
	DefaultAccessLevelAttributeValue = 0
)

Exported access level default values which application code may want to use.

View Source
const ElevatedAccessLevelAttributeValue = 1

ElevatedAccessLevelAttributeValue is the value that will be used when a request passes all checks for running in elevated access mode.

Variables

This section is empty.

Functions

func Provide added in v0.5.0

func Provide(configKey string) fx.Option

Provide provides the auth alice.Chain for the primary server.

Types

type APIBaseIn added in v0.5.0

type APIBaseIn struct {
	fx.In
	Val string `name:"api_base"`
}

type AccessLevel

type AccessLevel struct {
	Resolve      accessLevelResolver
	AttributeKey string
}

AccessLevel provides logic for resolving the correct access level for a request given its bascule attributes.

type JWTValidator added in v0.9.1

type JWTValidator struct {
	// Config is used to create the clortho Resolver & Refresher for JWT verification keys
	Config clortho.Config `json:"config"`
}

JWTValidator provides a convenient way to define jwt validator through config files

Jump to

Keyboard shortcuts

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