Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOriginRefererMismatch = errors.New("origin/referer don't match target") ErrOriginRefererNotFound = errors.New("origin and referer not specified") ErrSchemeNotDefined = errors.New("scheme not defined in X-Forwarded-Proto or in the URL") ErrHostNotDefined = errors.New("host not defined in X-Forwarded-Host or Host headers") )
Functions ¶
func GetIP ¶
GetIP gets a requests IP address by reading off the forwarded-for header (for proxies) and falls back to use the remote address.
Types ¶
type ErrKeyNotFound ¶
type ErrKeyNotFound struct {
// contains filtered or unexported fields
}
func (*ErrKeyNotFound) Error ¶
func (e *ErrKeyNotFound) Error() string
type JWEService ¶
type JWEService interface { Start(r *http.Request) (*jwt.Claims, error) Serialize(claims *jwt.Claims, private interface{}) (string, error) Parse(r *http.Request, token string, private interface{}) (*jwt.Claims, error) SerializeEncrypted(claims *jwt.Claims, private interface{}) (string, error) ParseEncrypted(r *http.Request, token string, private interface{}) (*jwt.Claims, error) }
func NewJWEService ¶
func NewJWEService(time stime.TimeService, expiration time.Duration, keyService webkeys.WebKeysService) JWEService
Click to show internal directories.
Click to hide internal directories.