File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ func SetupApiServer(router *gin.Engine) {
127127 router .UseRawPath = true
128128 // router.UnescapePathValues = false
129129
130- // Endpoint to proceed database migration — must be unauthenticated because
130+ // Endpoint to proceed database migration — listed in auth.publicPaths because
131131 // auth tables may not exist yet when migration is pending.
132132 router .GET ("/proceed-db-migration" , func (ctx * gin.Context ) {
133133 // Execute database migration
Original file line number Diff line number Diff line change @@ -34,15 +34,16 @@ import (
3434// and clear its session even when the cookie has lapsed; both handlers
3535// short-circuit gracefully when no user is set.
3636var publicPaths = map [string ]struct {}{
37- "/ping" : {},
38- "/ready" : {},
39- "/health" : {},
40- "/version" : {},
41- PathMethods : {},
42- PathLogin : {},
43- PathCallback : {},
44- PathLogout : {},
45- PathUserInfo : {},
37+ "/ping" : {},
38+ "/ready" : {},
39+ "/health" : {},
40+ "/version" : {},
41+ "/proceed-db-migration" : {},
42+ PathMethods : {},
43+ PathLogin : {},
44+ PathCallback : {},
45+ PathLogout : {},
46+ PathUserInfo : {},
4647}
4748
4849func OIDCAuthentication () gin.HandlerFunc { return defaultService .OIDCAuthentication () }
You can’t perform that action at this time.
0 commit comments