Skip to content

Tag: spring-security

How to fix Hibernate LazyInitializationException: failed to lazily initialize a collection of roles, could not initialize proxy – no Session

In the custom AuthenticationProvider from my spring project, I am trying read the list of authorities of the logged user, but I am facing the following error: Reading other topics from here in StackOverflow, I understand this happens due the way this type of atribute is handled by the framework, but i can&#82…

alternative to GrantedAuthorityImpl() class

I want an alternative to GrantedAuthorityImpl() class. I want this in spring security implementation. GrantedAuthorityImpl() class is deprecated. Hence I want an alternative solution to it. My code : Answer The class GrantedAuthorityImpl has been deprecated – you can use SimpleGrantedAuthority instead:

How to login to a spring security login form using cURL?

I am working on a springMVC project in which the user authentication is based on spring security. the idea is to have a mobile (android) application to be able to send some sort of data to backend. So before get my hand dirty into android developing I decided to mock the situation of login form using cURL. th…