auth

package
v0.2.44 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Session string
	UserId  string
}

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) CheckGetMethod added in v0.1.27

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

func (*Auth) CheckPostMethod added in v0.2.1

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

func (*Auth) CheckSignature added in v0.2.1

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

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