()
| 123 | } |
| 124 | |
| 125 | func (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 |
| 134 | func (rt *Router) jwtMock() gin.HandlerFunc { |
no test coverage detected