feat: document mfa package

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
This commit is contained in:
Julian Koberg
2025-09-18 16:17:04 +02:00
parent 824a71dbe2
commit dda6104722
13 changed files with 122 additions and 32 deletions

View File

@@ -51,7 +51,8 @@ func (g Graph) GetGroups(w http.ResponseWriter, r *http.Request) {
return
}
if !mfa.Accepted(r.Context(), w) {
if !mfa.EnsureOrReject(r.Context(), w) {
logger.Error().Str("path", r.URL.Path).Msg("MFA required but not satisfied")
return
}
}