Fix minor formatting issues

This commit is contained in:
NipuniBhagya 2025-05-18 13:23:15 +05:30
parent 5b1daaefc3
commit 6a1c9c5883
3 changed files with 4 additions and 18 deletions

View file

@ -20,9 +20,6 @@ func (d *ScopeValidator) ValidateAccess(
claims *TokenClaims,
requiredScopes any,
) AccessControlResult {
logger.Info("Required scopes: %v", requiredScopes)
var scopeStr string
switch v := requiredScopes.(type) {
case string:
@ -45,7 +42,6 @@ func (d *ScopeValidator) ValidateAccess(
}
}
logger.Info("Token scopes: %v", claims.Scopes)
for _, tokenScope := range claims.Scopes {
if _, ok := required[tokenScope]; ok {
return AccessControlResult{DecisionAllow, ""}