grails / grails-spring-security-rest

Grails plugin to implement token-based, RESTful authentication using Spring Security

Home Page:http://alvarosanchez.github.io/grails-spring-security-rest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An Authentication object was not found in the SecurityContext

NicolasLehoux opened this issue · comments

Hi, I have a project that i would like to have a rest api to authenticate and this pluggin seems to be exactly wha ti need. My project use GORM so i followed the procedure to install it and using GORM I added the dependencies in the build.graddle :
buildGraddle
and i made the changes for the filterChain
filterchain
but i keep getting errors when I try to login.
curl request
ErrorStackTrace

I was wondering if you had any idea what could cause that problem and also any way to solve that problem.

I tried to make an empty project and adding dependencies off my project chunk by chunk to see if there was any problem with that but didnt get any result. I observed in the logs that the pluggin was well initiated
blankProjectBuild
But there was no log like that in my other project.
baseBuild
Is ther something that could prevent the plugin to initiate? Thanks in advance et I really wish to be able to use that plugin.

Please post questions in StackOverflow. Label your questions with both the grails and spring-security-rest tags.

You can also try with asking in the #spring-security-rest channel in Slack.