auth/oidc: fix eager token fetch at startup, add validation and e2e tests

This commit is contained in:
fatedier
2026-03-13 16:57:33 +08:00
parent 94a631fe9c
commit ad239300f2
12 changed files with 885 additions and 35 deletions

View File

@@ -100,7 +100,11 @@ func (s *Server) Run() error {
}
func (s *Server) Close() error {
return s.hs.Close()
err := s.hs.Close()
if s.ln != nil {
_ = s.ln.Close()
}
return err
}
type RouterRegisterHelper struct {