Skip to content

Commit

Permalink
Try to require the identity header and store it in the request context
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Dec 15, 2023
1 parent 3f3cf7e commit 7df14e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func Start(
internal.Use(oapiMiddleware.OapiRequestValidator(privateSpec))
// Authorization header not required for GET /internal/version
internal.GET("/version", privateController.ApiInternalVersion)
internal.POST("/v2/connection_status", privateController.ApiInternalHighlevelConnectionStatus)
internal.POST("/v2/connection_status", privateController.ApiInternalHighlevelConnectionStatus, echo.WrapMiddleware(identity.EnforceIdentity), middleware.ExtractHeaders(constants.HeaderIdentity))
internal.Use(middleware.CheckPskAuth(authConfig))
internal.Use(echo.WrapMiddleware(middleware.StoreAPIVersion))
internal.POST("/dispatch", privateController.ApiInternalRunsCreate)
Expand Down

0 comments on commit 7df14e9

Please sign in to comment.