auth

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Handler handles auth endpoint.

func InitKeysAndCookies

func InitKeysAndCookies(TLS bool)

InitKeysAndCookies initializes keys and cookies.

func LDAPAuthFunc

func LDAPAuthFunc(ctx context.Context) (context.Context, error)

LDAPAuthFunc is used by a middleware to authenticate requests.

func LogoutHandler

func LogoutHandler(w http.ResponseWriter, r *http.Request)

LogoutHandler handles logout button.

func TwoCookieAuthMiddleware

func TwoCookieAuthMiddleware(next http.Handler) http.Handler

TwoCookieAuthMiddleware used for SPA auth.

Types

This section is empty.

Jump to

Keyboard shortcuts

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