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:
parent
4bb99e80d0
commit
cf4f549b06
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue