-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with GlobalMethodSecurity #98
Comments
Adding that class solved it for me. However i am now noticing that my spring security context does not have any roles (apart from ROLE_USER) in the granted authorities for my session. Any idea what i am doing wrong? EDIT: Okay. so it turns out i will have to get them roles from the Active directory. I am currently working to get that sorted. Will post it here once sorted. Any help to speed up the process is however appreciated. |
Okay this is a very weird one. I have worked out to get the Roles from ldap and my method "getRoles()" is fetching the correct roles. Now the problem is that my @secured annotation is not working for any of the roles that i am getting back. However if i manually add ROLE_USER to the list and then grant ROLE_USER access to the request mapping it works. But it only works for the ROLE_USER I have checked my session on tomcat and my SPRING_SECURITY_CONTEXT attribute shows all the added roles in the list of Granted Authorities. |
Okay got it all to work. Turns out the application relies on ROLE_USER to be there to access all controllers |
Which version are you using? Latest 0.8.0 or you build the 1.0.0-SNAPSHOT? |
Using 0.8.0. Sorry for a late reply. |
Hi , i am trying to configure my application to work with
http://www.baeldung.com/spring-security-method-security
I was just wondering if i can do something like
security.securedEnabled = true
in the application.properties file to get this working with your CAS library
The text was updated successfully, but these errors were encountered: