我在用Redis作为数据存储和Spring Security插件运行Grails 2.3.5应用程序时有问题吗?
我在提交登录表单(全新的grails项目,安装了spring-security-core和redis-gorm插件,以及使用s2-quickstart命令生成的User、Role、Requestmap类)时收到这条“有趣”的消息:
Error 500: Internal Server Error
URI
/test-redis-security/j_spring_security_check
Class
java.lang.IllegalArgumentException
我目前正在开发一个Grails应用程序,并通过Core和UI插件使用Spring Security框架。
几乎所有的东西都工作得很好:用户创建、编辑、删除等等。唯一的问题是requestmap不能正常工作。当我调用requestmap/create时,我得到以下错误:
URI /xxx/requestmap/create
Class java.lang.NullPointerException
Message Cannot get property 'clazz' on null object
Around line 81 of grails-app/controllers/
我将Keycloak与Spring Data REST结合使用,如果用户发送具有过期令牌的http请求,则会抛出以下异常
org.keycloak.common.VerificationException: Token is not active
at org.keycloak.TokenVerifier.verify(TokenVerifier.java:164) ~[keycloak-core-3.1.0.Final.jar:3.1.0.Final]
at org.keycloak.RSATokenVerifier.verify(RSATokenVerifier.java:
我使用的是Grails 2.0.3中的Spring Security插件,如果用户没有登录,我会尝试在每个页面的页眉中添加一个登录表单。当我单击我的登录按钮时,它会尝试POST到一个实际上没有任何代码来处理请求的控制器操作。这就是我要做的
BlogPostController
class BlogPostController {
static defaultAction = "home"
/**
* Summary of the most recent blog posts.
*/
def home() {
//
我尝试在spring云网关本身中使用keycloak进行身份验证和授权。但是我得到了下面的错误。
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'springSecurityFilterChain' defined in class path resource [poc/apigateway/SecurityConfig.class]:
Bean instantiation via factory method failed;