mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-06-16 03:04:30 +08:00
Skip OAuth 2 authorize approval
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user