Versions in this module Expand all Collapse all v1 v1.0.0 Sep 19, 2021 Changes in this version + func IsAnonymous(ctx context.Context) bool + func SetupAuthFromHTTP(r *http.Request) (context.Context, error) + func SetupTestAuthFromContext(ctx context.Context, userNumber uint) context.Context + type Auth interface + GetAuthHeader func() string + GetUser func() string + IsAdmin func() bool + func GetAuth(ctx context.Context) Auth + type BasicAuth struct + func (t *BasicAuth) GetAuthHeader() string + func (t *BasicAuth) GetUser() string + func (t *BasicAuth) IsAdmin() bool + func (t *BasicAuth) String() string + type JWK struct + Keys []JWKKey + type JWKKey struct + Alg string + E string + Kid string + Kty string + N string + Use string