jwt

package
v0.0.0-...-1bc9eea Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWX

type JWX interface {
	Fetch(ctx context.Context, urlstring string, options ...jwk.FetchOption) (jwk.Set, error)
	Parse(s []byte, options ...jwt.ParseOption) (jwt.Token, error)
}

type Service

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

func NewService

func NewService() Service

func (Service) GetUser

func (s Service) GetUser(token jwt.Token) (model.User, error)

func (Service) ParseAndVerify

func (s Service) ParseAndVerify(jwtSrc, jwksURI string) (jwt.Token, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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