Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with SecurityContextHolder.getContext().getAuthentication()  RSS feed

Ranch Hand
Posts: 376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create an aplication STS from "" which acesses the database diectly from Hibernate. The pmo uses:

I was requested to change the application to use Spring Data with JPA in Inlellij Idea using Gradle; the problem I am having is that the controller has among other methods:

The problem is that SecurityContextHolder.getContext().getAuthentication(); is giving me a null value, although it works fine in STS, and I have not been able to determine what is the problem.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!