platform/packages/auth/example/client/example1.http

17 lines
436 B
Text
Raw Normal View History

2023-05-30 11:49:02 +00:00
### 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
2023-05-31 16:44:37 +00:00
### 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