Versions in this module Expand all Collapse all v0 v0.24.0 Mar 28, 2022 Changes in this version + var DefaultRealmName = "API" + func APIKeyAuth(name, in string, authenticate TokenAuthentication) runtime.Authenticator + func APIKeyAuthCtx(name, in string, authenticate TokenAuthenticationCtx) runtime.Authenticator + func Authorized() runtime.Authorizer + func BasicAuth(authenticate UserPassAuthentication) runtime.Authenticator + func BasicAuthCtx(authenticate UserPassAuthenticationCtx) runtime.Authenticator + func BasicAuthRealm(realm string, authenticate UserPassAuthentication) runtime.Authenticator + func BasicAuthRealmCtx(realm string, authenticate UserPassAuthenticationCtx) runtime.Authenticator + func BearerAuth(name string, authenticate ScopedTokenAuthentication) runtime.Authenticator + func BearerAuthCtx(name string, authenticate ScopedTokenAuthenticationCtx) runtime.Authenticator + func FailedBasicAuth(r *http.Request) string + func FailedBasicAuthCtx(ctx context.Context) string + func HttpAuthenticator(handler func(*http.Request) (bool, interface{}, error)) runtime.Authenticator + func OAuth2SchemeName(r *http.Request) string + func OAuth2SchemeNameCtx(ctx context.Context) string + func ScopedAuthenticator(handler func(*ScopedAuthRequest) (bool, interface{}, error)) runtime.Authenticator + type ScopedAuthRequest struct + Request *http.Request + RequiredScopes []string + type ScopedTokenAuthentication func(string, []string) (interface{}, error) + type ScopedTokenAuthenticationCtx func(context.Context, string, []string) (context.Context, interface{}, error) + type TokenAuthentication func(string) (interface{}, error) + type TokenAuthenticationCtx func(context.Context, string) (context.Context, interface{}, error) + type UserPassAuthentication func(string, string) (interface{}, error) + type UserPassAuthenticationCtx func(context.Context, string, string) (context.Context, interface{}, error)