Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Alejandro Barrero
Ranch Hand
Posts: 361
  • 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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!