fix: add unauthorized instead of sending to a loop
This commit is contained in:
@@ -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 == "/" {
|
||||
|
||||
Reference in New Issue
Block a user