Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(portal portal.Service, errorHandler errorsx.Handler) Authenticator
func (Authenticator) NewAuthenticatorMiddlewareFunc ¶
func (a Authenticator) NewAuthenticatorMiddlewareFunc(swagger *openapi3.T) func(http.Handler) http.Handler
NewAuthenticatorMiddlewareFunc returns a middleware function that authenticates requests based on the OpenAPI 3 security requirements. TODO: support custom claims
type AuthenticatorContextKey ¶
type AuthenticatorContextKey string
const (
AuthenticatorSubjectSessionKey AuthenticatorContextKey = "openmeter_subject"
)
Click to show internal directories.
Click to hide internal directories.