mwinteringham / restful-booker-platform

A SaaS platform used for various test automation training
http://www.automationintesting.com
GNU General Public License v3.0
123 stars 153 forks source link

auth_controller /auth/login not return a token #212

Closed copyleftdev closed 1 year ago

copyleftdev commented 1 year ago

per swagger specification upon successful authentication response will yield a token.

Actual Behavior: returns an empty body with status code 200

Steps to Reproduce:

curl --location --request POST 'https://automationintesting.online/auth/login' \
--header 'accept: */*' \
--header 'Referer;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "username": "admin",
  "password": "password"
}'

Observe response body does not yield a token

mwinteringham commented 1 year ago

The token is returned in the response headers now. Inspect it for a Set-Cookie header and you'll find the token.