Skip OAuth 2 authorize approval

This commit is contained in:
MaxKey
2026-05-23 20:32:52 +08:00
parent ae2dbfb31c
commit 182a9471f9

View File

@@ -101,6 +101,10 @@ public class SingleSignOnInterceptor implements AsyncHandlerInterceptor {
logger.debug("appId {}",appId);
app = appsService.get(appId,true);
}else if(requestURI.contains("/authz/oauth/v20/authorize")) {//oauth
if(request.getMethod().equalsIgnoreCase("POST")) {
logger.trace("Skip OAuth 2 authorize approval POST .");
return true;
}
app = appsService.get(request.getParameter(OAuth2Constants.PARAMETER.CLIENT_ID),true);
}
}