Cached App Details

This commit is contained in:
MaxKey
2022-03-02 19:30:23 +08:00
parent 13102d53b7
commit 19180584cf
19 changed files with 161 additions and 48 deletions

View File

@@ -79,7 +79,7 @@ public class JwtAuthorizeEndpoint extends AuthorizeBaseEndpoint{
@PathVariable("id") String id){
ModelAndView modelAndView=new ModelAndView();
Apps application = getApp(id);
AppsJwtDetails jwtDetails = jwtDetailsService.getAppDetails(id);
AppsJwtDetails jwtDetails = jwtDetailsService.getAppDetails(id , true);
_logger.debug(""+jwtDetails);
jwtDetails.setAdapter(application.getAdapter());
jwtDetails.setIsAdapter(application.getIsAdapter());
@@ -146,7 +146,7 @@ public class JwtAuthorizeEndpoint extends AuthorizeBaseEndpoint{
HttpServletResponse response,
@PathVariable("appid") String appId,
@PathVariable("mediaType") String mediaType) {
AppsJwtDetails jwtDetails = jwtDetailsService.getAppDetails(appId);
AppsJwtDetails jwtDetails = jwtDetailsService.getAppDetails(appId , true);
if(jwtDetails != null) {
String jwkSetString = "";
if(!jwtDetails.getSignature().equalsIgnoreCase("none")) {