This commit is contained in:
Célian GARCIA 2026-06-15 18:17:29 +08:00 committed by GitHub
commit 01b0fbcc7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/apis/middleware"
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/apis/sessions"
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/logger"
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/requests"
)
@ -133,6 +134,8 @@ func (p *ProviderData) Authorize(_ context.Context, s *sessions.SessionState) (b
}
}
logger.Println("session groups do not match any allowed groups")
return false, nil
}