auth

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(providers ...Provider) endpoint.Middleware

Types

type OktaProvider

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

func (*OktaProvider) String

func (p *OktaProvider) String() string

func (*OktaProvider) Verify

func (p *OktaProvider) Verify(ctx context.Context, token string) error

type Provider

type Provider interface {
	Verify(ctx context.Context, token string) error
}

func NewOktaProvider

func NewOktaProvider(issuer string, claims ...string) Provider

func NewStaticProvider

func NewStaticProvider(tokens ...string) Provider

type StaticProvider

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

func (*StaticProvider) String

func (p *StaticProvider) String() string

func (*StaticProvider) Verify

func (p *StaticProvider) Verify(ctx context.Context, token string) error

Jump to

Keyboard shortcuts

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