UW Spring Security sample web application.
Test Cases
local-users
Start VM eith 'mvn clean install jetty:run', visit http://localhost:8080/.
- Click 'Lazy authentication', expect "anonymousUser".
- Visit http://localhost:8080/index.html. Click 'Lazy with "ignorepreauth"', expect "anonymousUser".
- Visit http://localhost:8080/index.html. Click /required, expect login form. Enter credentials, submit, and expect JSON object representing current UWUserDetails.
preauth
Start VM with 'mvn clean install jetty:run -P preauth', visit http://localhost:8080/.
- Click 'Lazy with "ignorepreauth"', expect "anonymousUser".
- Visit http://localhost:8080/index.html. Click 'Lazy authentication', expect JSON object representing UWUserDetails for 'Amy Administrator'.
- Visit http://localhost:8080/index.html. Click 'Required authentication', expect JSON object representing UWUserDetails for 'Amy Administrator'.
combined
Start VM eith 'mvn clean install jetty:run -P combined', visit http://localhost:8080/.
Note that with the 'combined' test here, we have nothing providing preauthentication attributes, so the app falls back to local-users forms. To see combined
with something that provides preauthentication attributes, see the 'combined-simulate-netid' test.
- Click 'Lazy authentication', expect "anonymousUser".
- Visit http://localhost:8080/index.html. Click 'Lazy with "ignorepreauth"', expect "anonymousUser".
- Visit http://localhost:8080/index.html. Click /required, expect login form. Enter credentials, submit, and expect JSON object representing current UWUserDetails.
combined-simulate-netid
Start VM with 'mvn clean install jetty:run -P combined-simulate-netid', visit http://localhost:8080/.
- Click 'Lazy with "ignorepreauth"', expect "anonymousUser".
- Visit http://localhost:8080/index.html. Click 'Lazy authentication', expect JSON object representing UWUserDetails for 'Amy Administrator'.
- Visit http://localhost:8080/index.html. Click 'Required authentication', expect JSON object representing UWUserDetails for 'Amy Administrator'.