Init
release-tag / release-image (push) Has been cancelled

This commit is contained in:
2026-08-22 08:10:11 +02:00
parent 6458e81172
commit 1d8e36c53a
33 changed files with 2471 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
package auth
import "net/http"
func (m *Manager) Register(mux *http.ServeMux) {
mux.HandleFunc("GET /login", m.Login)
mux.HandleFunc("GET /oidc/callback", func(w http.ResponseWriter, r *http.Request) {
if err := m.Callback(w, r); err != nil {
http.Error(w, err.Error(), http.StatusUnauthorized)
return
}
http.Redirect(w, r, "/", http.StatusFound)
})
mux.HandleFunc("POST /logout", m.Logout)
}