platform/packages/auth/example/client/example_client.http
thomashii@dukefirehawk.com 1e616f3f5c Fixed auth
2023-06-03 10:32:46 +08:00

17 lines
No EOL
435 B
HTTP

### Load landing page
GET http://localhost:3000/ HTTP/1.1
### Success redirect
POST http://localhost:3000/login HTTP/1.1
Content-Type: application/json
Authorization: Basic jdoe1:password
### Failure redirect
POST http://localhost:3000/login HTTP/1.1
Content-Type: application/json
Authorization: Basic password:username
### Force basic
GET http://localhost:3000/hello HTTP/1.1
Content-Type: application/json
Accept:application/json