package
1.1.11
Repository: https://github.com/oneofone/gserv.git
Documentation: pkg.go.dev

# Functions

ApplyHeaders is a middle to apply a static set of headers to an gserv.Context.
NewAuth returns a new Auth struct with the given keyForUser and the defaults from DefaultAuth.

# Constants

errors.
TokenContextKey is the key used to access the saved token inside an gserv.Context.

# Variables

DefaultAuth has the default values for Auth.
No description provided by the author
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security.
https://googleblog.blogspot.com/2007/07/robots-exclusion-protocol-now-with-even.html.
SimpleHeadersMaps of common headers based on https://rorsecurity.info/portfolio/new-http-headers-for-more-security.

# Structs

Auth is a simple handler for authorization using JWT with a simple.
No description provided by the author

# Type aliases

CookieExtractor implements an Extractor to use auth token from cookies.
No description provided by the author
SHM is a Simple Headers Map.
No description provided by the author
No description provided by the author