Skip to content
This repository was archived by the owner on Apr 27, 2018. It is now read-only.

vpavic/spring-boot-security-arg-resolvers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot - error with Spring Security argument resolvers

UPDATE: This issue was present in Spring Data Commons releases 1.11.6/1.12.6 and was fixed in 1.11.7/1.12.7/1.13/2.0. See DATACMNS-776.


This is a minimal project to demonstrate error that occurs when using Spring Security together with Spring Data.

The cause of this issue is DATACMNS-776. This project demonstrates the problem with Spring Security's @AuthenticationPrincipal annotated UserDetails argument and CsrfToken argument.

To demonstrate the issue, build and start the application, and log in using username user and password password. Once logged in, navigate to /principal and /csrf endpoints.

If the project is build with org.springframework.boot:spring-boot-starter-data-jpa dependency commented out from the build script, the endpoints work as expected.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages