auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
}

func (*Auth) Check

func (a *Auth) Check(next http.HandlerFunc) http.HandlerFunc

Check is HTTP middleware to ensure the request has proper token credentials

func (*Auth) CheckWithRedirect

func (a *Auth) CheckWithRedirect(next http.HandlerFunc) http.HandlerFunc

func (*Auth) IsValid

func (a *Auth) IsValid(req *http.Request) bool

IsValid checks if the user request is authenticated

Jump to

Keyboard shortcuts

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