authz

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: BSD-3-Clause-Clear Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderConfig

type ProviderConfig struct {
	Config        map[string]any
	UsernameClaim string
	GroupsClaim   string
	ClientIDClaim string
}

ProviderConfig carries provider-specific configuration and claim selectors.

type RoleProvider

type RoleProvider interface {
	Roles(ctx context.Context, token jwt.Token, req RoleRequest) ([]string, error)
}

RoleProvider returns role/group identifiers used as Casbin subjects.

type RoleProviderFactory

type RoleProviderFactory func(ctx context.Context, cfg ProviderConfig) (RoleProvider, error)

RoleProviderFactory constructs a RoleProvider at startup.

type RoleRequest

type RoleRequest struct {
	Issuer   string
	Resource string
	Action   string
}

RoleRequest provides request context to role providers.

Jump to

Keyboard shortcuts

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