Skip to content

Commit

Permalink
Fix auth middleware (#595)
Browse files Browse the repository at this point in the history
* fix(app): order of initialize steps

* fix(configs): middleware - auth tokens key
  • Loading branch information
hatamiarash7 authored Sep 29, 2024
1 parent ccaf1ff commit 2a47e26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/buz/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ func (a *App) Initialize() {
a.configure()
a.initializeRouter()
a.initializeManifold()
a.initializeMiddleware()
a.initializeRouterGroups()
a.initializeMiddleware()
a.initializePublicRoutes()
a.initializeOpsRoutes()
a.initializeSchemaCacheRoutes()
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ type RequestLogger struct {

type Auth struct {
Enabled bool `json:"enabled"`
Tokens []string `json:"-"`
Tokens []string `json:"tokens"`
}

0 comments on commit 2a47e26

Please sign in to comment.