Documentation ¶ Index ¶ Constants func Authenticates(claims []resources.Claim, grants ...Grant) bool type Auther func NewAuther(getter kv.Getter) Auther type Client func (a *Client) ValidateJWT(r *http.Request) (claims []resources.Claim, err error) type Grant func UserGrant(nullifier string) Grant 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 Source Files ¶ View all Source files client.go config.go grants.go main.go Click to show internal directories. Click to hide internal directories.