如何克服百里香模板批准错误?

时间:2018-12-19 14:19:39

标签: java thymeleaf oidc mitreid-connect

this问题之后, 我正在使用here中的Spring Boot MitreID OIDC应用程序。运行正常

我正在尝试使用simple-web-app访问它。 Simple-web-app现在可以看到OIDC应用程序。即使我已登录OIDC应用程序,它仍然要求用户/密码。输入这些信息后,我现在得到以下错误。我找不到任何帮助。有人知道吗?

2018-12-19 14:15:44.641  INFO 7632 --- [nio-8080-exec-1] 
o.m.o.c.web.AuthenticationTimeStamper    : 
Successful Authentication of admin at Wed Dec 19 14:15:44 GMT 2018


2018-12-19 14:15:45.110 ERROR 7632 --- [nio-8080-exec-2] org.thymeleaf.TemplateEngine  
   : [THYMELEAF][http-nio-8080-exec-2] Exception processing template "approve": Exception 
evaluating SpringEL expression: " scope.structured " (approve:146)


2018-12-19 14:15:45.117 ERROR 7632 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].
[dispatcherServlet]    : Servlet.service() for servlet dispatcherServlet threw exception    
org.springframework.expression.spel.SpelEvaluationException: EL1008E:
 Property or field 'structured' cannot be found on object of type 
'org.mitre.oauth2.model.SystemScope' - maybe not public?

1 个答案:

答案 0 :(得分:1)

我认为您在最新的mitreid示例应用程序(就mitreid而言,这是最前沿的)与2年前的mitreid服务器的spring boot fork之间存在兼容性。例如。在主要的mitreid项目https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/commit/b17a7f43ae9a94592132a0336248631fe5914508

上更改了SystemScope的模型

您可能会遇到很多这样的问题,因为spring-boot前叉没有保持最新状态