auther

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPAuther

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

internal todo

func NewHTTPAuther

func NewHTTPAuther() *HTTPAuther

NewInternalAuther 内部使用的auther

func (*HTTPAuther) Auth

func (a *HTTPAuther) Auth(r *http.Request, entry httpb.Entry) (
	authInfo interface{}, err error)

func (*HTTPAuther) SetLogger

func (a *HTTPAuther) SetLogger(l logger.Logger)

SetLogger todo

func (*HTTPAuther) ValidateIdentity

func (a *HTTPAuther) ValidateIdentity(ctx context.Context, accessToken string) (*token.Token, error)

func (*HTTPAuther) ValidatePermission

func (a *HTTPAuther) ValidatePermission(ctx context.Context, tk *token.Token, e httpb.Entry) error

Jump to

Keyboard shortcuts

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