Skip to content

A demonstration of the conflict in HttpSecurity configuration when resource server is enabled.

Notifications You must be signed in to change notification settings

rdgoite/spring-security-oauth2-conflict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Security OAuth 2

Configuration Conflicts

This project was created to demonstrate the issues that occur when both WebSecurityConfigurerAdapter and ResourceServerConfigurerAdapter set up HttpSecurity using each of their respective configure(HttpSecurity http) methods. Actually, as shown in this project, the moment resource server is enabled using @EnableResourceServer, the error occurs.

The master branch points to the version of the application that works (without resource server enabled). The conflict branch contains an example configuration that shows conflicts.

Execution

This project uses Gradle for building. The quickest way to get the application running is to execute the bootRun Gradle task:

./gradlew bootRun

Alternatively, a jar file can be built using the build command. The resulting archive file is created in build directory. It can run using:

java -jar build/libs/spring-security-conflict-0.0.1-SNAPSHOT.jar

About

A demonstration of the conflict in HttpSecurity configuration when resource server is enabled.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages