fix: add unauthorized instead of sending to a loop

This commit is contained in:
Lukas Werner
2025-08-31 09:57:32 -07:00
parent 3920b8913d
commit 7b7bebe701
3 changed files with 94 additions and 1 deletions
+1
View File
@@ -62,6 +62,7 @@ func main() {
http.Handle("/oauth/callback", oauthStore.CallbackHandler())
http.Handle("/oauth/login", oauthStore.LoginPage())
http.Handle("/oauth/unauthorized", oauthStore.UnauthorizedPage())
protectedRoot := false
for _, pattern := range config.GuardedPaths {
if pattern == "/" {