Commit cf4f549b authored by lecaros's avatar lecaros Committed by Dave Syer

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.
parent 4bb99e80
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment