- Start the application
- Open Console and fire the following commands:
- curl -i http://localhost:8080/bars/1 --> should result in HTTP/1.1 401 "Unauthorized"
- curl -i http://localhost:8080/foos/1 --> should result in HTTP/1.1 401 "Unauthorized"
- curl -i http://localhost:8080/ --> should result in HTTP/1.1 200 Welcome
- curl -i http://localhost:8080/home --> should result in HTTP/1.1 200 Welcome
- curl -i --user user1:user1Pass http://localhost:8080/bars/1 --> should result in HTTP/1.1 200 com.umar.app.dto.Bar
- curl -i --user user1:user1Pass http://localhost:8080/foos/1 --> should result in HTTP/1.1 200 com.umar.app.dto.Foo
- curl -i --user user1:user1Pass http://localhost:8080/private/hello --> should result in HTTP/1.1 200 ["Hello","to","You","from","private"]
- curl -i --user user1:user1Pass http://localhost:8080/employees --> should result in HTTP/1.1 200 ["Sara","Zara"]
- curl -i http://localhost:8080/employees --> should result in HTTP/1.1 401 "Unauthorized"
- curl -i http://localhost:8080/private/hello --> should result in HTTP/1.1 401 "Unauthorized"
- curl -i http://localhost:8080/public/hello --> should result in HTTP/1.1 200 ["Hello","to","You","from","public"]
- curl -i --user user1:user1Pass http://localhost:8080/public/hello --> should result in HTTP/1.1 200 ["Hello","to","You","from","public"]
-
Notifications
You must be signed in to change notification settings - Fork 0
karimiumar/auth-auth
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Demonstrates Spring Security API for authentication and authorization
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published