diff --git a/openid-connect-server/src/main/java/org/mitre/openid/connect/token/TofuUserApprovalHandler.java b/openid-connect-server/src/main/java/org/mitre/openid/connect/token/TofuUserApprovalHandler.java index 27a592822..d3f297838 100644 --- a/openid-connect-server/src/main/java/org/mitre/openid/connect/token/TofuUserApprovalHandler.java +++ b/openid-connect-server/src/main/java/org/mitre/openid/connect/token/TofuUserApprovalHandler.java @@ -162,7 +162,7 @@ public class TofuUserApprovalHandler implements UserApprovalHandler { for (String scope : requestedScopes) { if (!allowedScopes.contains(scope)) { - throw new InvalidScopeException("Invalid scope: " + scope, allowedScopes); + return false; //throw new InvalidScopeException("Invalid scope: " + scope, allowedScopes); } }