roles

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role string
const (
	AutharaAdmin Role = "authara:admin"
)

type Roles

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

func FromClaims

func FromClaims(claims []Role) (Roles, error)

func (*Roles) AddAdmin

func (r *Roles) AddAdmin()

func (*Roles) IsAdmin

func (r *Roles) IsAdmin() bool

func (*Roles) List

func (r *Roles) List() []Role

Jump to

Keyboard shortcuts

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