【问题标题】:How to overcome thymeleaf template approve error?如何克服百里香模板批准错误?
【发布时间】:2019-05-20 01:24:58
【问题描述】:

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?

【问题讨论】:

    标签: java thymeleaf openid-connect mitreid-connect


    【解决方案1】:

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

    上已更改

    由于 spring-boot fork 没有保持最新状态,您可能会遇到其中的一些问题

    【讨论】:

      猜你喜欢
      • 2015-11-29
      • 2013-02-03
      • 2016-08-14
      • 2019-03-17
      • 2021-01-09
      • 2015-06-01
      • 1970-01-01
      • 2019-12-19
      相关资源
      最近更新 更多