change credentials order in authentication manager example

username/password pairs were incorrect. The authentication manager has "user" and "password", so those credentials should be allowed to get the actual message.
This commit is contained in:
lecaros 2013-09-16 21:10:51 -04:00 committed by Dave Syer
parent 4bb99e80d0
commit cf4f549b06
1 changed files with 2 additions and 2 deletions

View File

@ -304,9 +304,9 @@ an `AuthenticationManager`, e.g. in your `SampleController`:
Try it out:
$ curl user:password@localhost:8080/
{"status": 403, "error": "Forbidden", "message": "Access Denied"}
$ curl client:secret@localhost:8080/
{"status": 403, "error": "Forbidden", "message": "Access Denied"}
$ curl user:password@localhost:8080/
{"message": "Hello World"}
## Adding a database