MCPcopy
hub / github.com/ccfos/nightingale / auth

Method auth

center/router/router_mw.go:125–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125func (rt *Router) auth() gin.HandlerFunc {
126 if rt.HTTP.ProxyAuth.Enable {
127 return rt.proxyAuth()
128 } else {
129 return rt.tokenAuth()
130 }
131}
132
133// if proxy auth is enabled, mock jwt login/logout/refresh request
134func (rt *Router) jwtMock() gin.HandlerFunc {

Callers 5

ConfigMethod · 0.95
AuthMethod · 0.95
alertHisEventGetMethod · 0.95
alertCurEventGetMethod · 0.95
boardGetMethod · 0.95

Calls 2

proxyAuthMethod · 0.95
tokenAuthMethod · 0.95

Tested by

no test coverage detected