Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Sep 20, 2024
1 parent bc1ac79 commit c67a3d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func main() {
system := r.Group("/system", auth.GetAuthMiddleware(cfg, kubeClientset))

r.Use(func(c *gin.Context) {
// Process request
c.Next()
// Get token from headers
authHeader := c.GetHeader("Authorization")
if !strings.HasPrefix(authHeader, "Bearer ") {
Expand Down

0 comments on commit c67a3d1

Please sign in to comment.