OAuth2 Access Confirmation

OAuth2 Access Confirmation
This commit is contained in:
shimingxy
2020-06-05 11:09:40 +08:00
parent fd2a054d52
commit 173f5cdfb8
5 changed files with 119 additions and 65 deletions

View File

@@ -40,12 +40,13 @@ public class AuthorizeBaseEndpoint {
Apps app=(Apps)WebContext.getAttribute(AuthorizeBaseEndpoint.class.getName());
//session中为空或者id不一致重新加载
if(app==null||!app.getId().equalsIgnoreCase(id)) {
app=appsService.get(id);
app=appsService.get(id);
WebContext.setAttribute(AuthorizeBaseEndpoint.class.getName(), app);
}
if(app == null){
_logger.error("Applications for id "+id + " is null");
}
WebContext.setAttribute(AuthorizeBaseEndpoint.class.getName(), app);
return app;
}