platform/packages/auth/example/client/example1.http
2023-05-31 16:44:37 +00:00

17 lines
No EOL
436 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
POST http://localhost:3000/hello HTTP/1.1
Content-Type: application/json
Accept:application/json