Documentation
¶
Index ¶
- Constants
- func CreateHTTPHandlers(server *handle.Server) (*http.ServeMux, error)
- func HTTPJWTCreate(s *handle.Server) http.Handler
- func HTTPJWTValidate(s *handle.Server) http.Handler
- func HTTPMagicLinkCreate(s *handle.Server) http.Handler
- func HTTPMagicLinkEmailCreate(s *handle.Server) http.Handler
- func HTTPOTPCreate(s *handle.Server) http.Handler
- func HTTPOTPEmailCreate(s *handle.Server) http.Handler
- func HTTPOTPValidate(s *handle.Server) http.Handler
- func HTTPReady(_ *handle.Server) http.Handler
- func HTTPServiceAccountCreate(s *handle.Server) http.Handler
- type Validatable
Constants ¶
View Source
const ( // PathJWKS is the path to the JWKS endpoint. PathJWKS = "jwks.json" // PathReady is the path to the ready endpoint. PathReady = "ready" // PathServiceAccountCreate is the path to the service account creation endpoint. PathServiceAccountCreate = "admin/service-account/create" // PathJWTCreate is the path to the JWT creation endpoint. PathJWTCreate = "jwt/create" // PathJWTValidate is the path to the JWT validation endpoint. PathJWTValidate = "jwt/validate" // PathMagicLinkCreate is the path to the link creation endpoint. PathMagicLinkCreate = "magic-link/create" // PathMagicLinkEmailCreate is the path to the magic link email creation endpoint. PathMagicLinkEmailCreate = "magic-link-email/create" // PathOTPCreate is the path to the OTP creation endpoint. PathOTPCreate = "otp/create" // PathOTPValidate is the path to the OTP validation endpoint. PathOTPValidate = "otp/validate" // PathOTPEmailCreate is the path to the OTP email creation endpoint. PathOTPEmailCreate = "otp-email/create" )
Variables ¶
This section is empty.
Functions ¶
func CreateHTTPHandlers ¶
CreateHTTPHandlers creates the HTTP handlers for the server.
func HTTPJWTCreate ¶
HTTPJWTCreate creates an HTTP handler for the HandleJWTCreate method.
func HTTPJWTValidate ¶
HTTPJWTValidate creates an HTTP handler for the HandleJWTValidate method.
func HTTPMagicLinkCreate ¶ added in v0.6.0
HTTPMagicLinkCreate creates an HTTP handler for the HandleMagicLinkCreate method.
func HTTPMagicLinkEmailCreate ¶ added in v0.6.0
HTTPMagicLinkEmailCreate creates an HTTP handler for the HandleMagicLinkEmailCreate method.
func HTTPOTPCreate ¶ added in v0.6.0
HTTPOTPCreate creates an HTTP handler for the HandleOTPCreate method.
func HTTPOTPEmailCreate ¶ added in v0.6.0
HTTPOTPEmailCreate creates an HTTP handler for the HandleOTPEmailCreate method.
func HTTPOTPValidate ¶ added in v0.6.0
HTTPOTPValidate creates an HTTP handler for the HandleOTPValidate method.
Types ¶
type Validatable ¶
type Validatable[T any] interface { Validate(config model.Validation) (T, error) }
Validatable is an interface for validating a model.
Click to show internal directories.
Click to hide internal directories.