authkeeper

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthKeeper

type AuthKeeper interface {
	IsReadAuthorized(ctx context.Context) (bool, error)
	IsWriteAuthorized(ctx context.Context) (bool, error)
	Deauthorize() *godbus.Error
	Close() error
}

func NewNoAuth

func NewNoAuth(readAllowed, writeAllowed bool) (AuthKeeper, error)

no auth at all

func NewOauth

func NewOauth(controller string, skipVerify bool) (AuthKeeper, error)

remote auth with oauth2

func NewPolkitAuth

func NewPolkitAuth(dbusName, dbusPath string, timeout uint32) (AuthKeeper, error)

setup the dbus authorization call back.

type OAuth2Provider added in v0.3.0

type OAuth2Provider interface {
	AuthKeeper
	VerifyJWT(ctx context.Context, tokenString string, r *http.Request) (*auth.TokenInfo, error)
	JwksUri() string
}

Jump to

Keyboard shortcuts

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