Add JDBC user details to web-secure sample

See gh-1115
This commit is contained in:
Dave Syer
2014-06-18 11:57:11 +01:00
parent 8a1279315e
commit e39fafcc33
4 changed files with 47 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ public class SampleSecureApplicationTests {
headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>();
form.set("username", "user");
form.set("password", "password");
form.set("password", "user");
ResponseEntity<String> entity = new TestRestTemplate().exchange(
"http://localhost:" + this.port + "/login", HttpMethod.POST,
new HttpEntity<MultiValueMap<String, String>>(form, headers),