feat: Add log when groups do not match allowed groups
Signed-off-by: Célian Garcia <celian.garcia@amadeus.com> Signed-off-by: Celian GARCIA <celian.garcia@amadeus.com>
This commit is contained in:
parent
da9123f740
commit
27f1e910e9
|
|
@ -9,6 +9,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"
|
||||
)
|
||||
|
||||
|
|
@ -132,6 +133,8 @@ func (p *ProviderData) Authorize(_ context.Context, s *sessions.SessionState) (b
|
|||
}
|
||||
}
|
||||
|
||||
logger.Println("session groups do not match any allowed groups")
|
||||
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue