Documentation
¶
Index ¶
- Variables
- func Authenticate(ctx context.Context, jwt2 *pkgjwt.JWTConfig, ...) error
- func CORSMiddleware() gin.HandlerFunc
- func GetJWSFromRequest(req *http.Request) (string, error)
- func HandleOpenAPIError(c *gin.Context, message string, statusCode int)
- func HandleOpenApiAuthentication(ctx context.Context, jwt2 *pkgjwt.JWTConfig, ...) error
- func NewAuthenticator(jwt2 *pkgjwt.JWTConfig) openapi3filter.AuthenticationFunc
- func RecoveryMiddleware() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Authenticate ¶
func Authenticate(ctx context.Context, jwt2 *pkgjwt.JWTConfig, input *openapi3filter.AuthenticationInput) error
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
func GetJWSFromRequest ¶
GetJWSFromRequest extracts a JWS string from an Authorization: Bearer <jws> header
func HandleOpenApiAuthentication ¶
func HandleOpenApiAuthentication(ctx context.Context, jwt2 *pkgjwt.JWTConfig, input *openapi3filter.AuthenticationInput) error
func NewAuthenticator ¶
func NewAuthenticator(jwt2 *pkgjwt.JWTConfig) openapi3filter.AuthenticationFunc
func RecoveryMiddleware ¶
func RecoveryMiddleware() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.