auth

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider

type AuthProvider interface {
	Validate(token string) (string, int, error)
}

type B64EncodedAuthProvider

type B64EncodedAuthProvider struct{}

func NewB64EncodedAuthProvider

func NewB64EncodedAuthProvider() *B64EncodedAuthProvider

func (*B64EncodedAuthProvider) Validate

func (n *B64EncodedAuthProvider) Validate(token string) (string, int, error)

type JWKSAuthProvider

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

func NewJWKSAuthProvider

func NewJWKSAuthProvider(context context.Context, client *http.Client, jwksUrl string) (*JWKSAuthProvider, error)

func (*JWKSAuthProvider) Validate

func (j *JWKSAuthProvider) Validate(token string) (string, int, error)

type JWTAuthProvider

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

func NewJWTAuthProvider

func NewJWTAuthProvider(sharedSecret []byte) (*JWTAuthProvider, error)

func (*JWTAuthProvider) Validate

func (j *JWTAuthProvider) Validate(token string) (string, int, error)

Jump to

Keyboard shortcuts

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