Grails spring security login issue: /auth?login_error=1

爱⌒轻易说出口 提交于 2019-12-05 21:42:24

It's hard to say, there could be several reasons. The first thing to try is to crank up the logging - add

debug 'org.springframework.security'

to your Log4j configuration in Config.groovy and you'll probably see a helpful error message in the output.

srisris

I found my mistake, I wish I knew how to use those debug in log4j. It was such a trivial but costed me lot of time and effort.

The issue was I encrypted the password using springSecurityService.encrypt(password), but didnt set that in the User object that I created and hence there was a mismatch in password comparisions and fails.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!