auth_client

package
v0.0.0-...-b284d2a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	URL    string
	JwkSet *jwk.Set
}

func NewAuthClient

func NewAuthClient(url string, keyID string) (*AuthClient, error)

func (*AuthClient) ValidateRequestMiddleware

func (a *AuthClient) ValidateRequestMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func (*AuthClient) ValidateToken

func (a *AuthClient) ValidateToken(token string) (jwt.Token, error)

Jump to

Keyboard shortcuts

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