mirror of
https://github.com/wso2/open-mcp-auth-proxy.git
synced 2025-06-29 01:44:19 +00:00
Fix minor formatting issues
This commit is contained in:
parent
5b1daaefc3
commit
6a1c9c5883
3 changed files with 4 additions and 18 deletions
|
@ -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, ""}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue