auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FullValidatePath = "integrations/decentralized-auth-svc/v1/validate"
)

Variables

This section is empty.

Functions

func Authenticates

func Authenticates(claims []resources.Claim, grants ...Grant) bool

Types

type Auther

type Auther interface {
	Auth() *Client
}

func NewAuther

func NewAuther(getter kv.Getter) Auther

type Client

type Client struct {
	*http.Client
	Addr string
}

func (*Client) ValidateJWT

func (a *Client) ValidateJWT(r *http.Request) (claims []resources.Claim, err error)

type Grant

type Grant func(claim resources.Claim) bool

func UserGrant

func UserGrant(nullifier string) Grant

Jump to

Keyboard shortcuts

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