如何克服百里香模板批准错误? [英] How to overcome thymeleaf template approve error?
问题描述
接下来是这个问题, 我正在从此处使用Spring Boot MitreID OIDC应用程序.运行正常
Following on from this question, I am using the Spring Boot MitreID OIDC application from here. This runs OK
我正在尝试使用 simple-web-app 访问它.现在,Simple-web-app可以看到OIDC应用程序.即使我已登录OIDC应用程序,它仍然要求用户/密码.当我输入这些时,我现在得到以下错误.我找不到任何帮助.有人有什么主意吗?
I am trying to access it using simple-web-app. Simple-web-app now can see the OIDC app. It still asks for user/pwd even though I am logged in in the OIDC app. When I enter these I now get the following error. I can't find any help. Anyone have any idea?
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?
推荐答案
我认为您在最新的mitreid示例应用程序(就mitreid而言,这是最前沿的)与mitreid服务器的spring boot fork(从2开始)之间不兼容几年前.例如. SystemScope的模型在主要mitreid项目 https上已更改://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/commit/b17a7f43ae9a94592132a0336248631fe5914508
I think you have an incompatibility between the latest mitreid sample app (which is bleeding edge as far as mitreid goes) and the spring boot fork of mitreid server from 2 years ago. E.g. the model for SystemScope changed here on the main mitreid project https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/commit/b17a7f43ae9a94592132a0336248631fe5914508
您可能会遇到很多这样的问题,因为spring-boot叉没有保持最新状态
You'll probably hit a number of these as the spring-boot fork is not being kept up-to-date
这篇关于如何克服百里香模板批准错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!