Cannot get login using Spryker API /access-tokens in B"B Marketplace demo fresh installation

Kadafi
Kadafi Posts: 9 🧑🏻‍🚀 - Cadet

Hello,

i made a fresh installation of the B2B Marketplace demo and i am cannot have success in making the authentication valid in accessing the /access-tokens(http://swagger.spryker.local/#/access-tokens)

curl -X 'POST' \
  'http://glue.eu.spryker.local/access-tokens' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "data": {
    "type": "access-tokens",
    "attributes": {
      "username": "admin@spryker.com",
      "password": "change123"
    }
  }
}'

i tried with all default users like, harald, richard, … but all fail.

In the documentation:

https://github.com/spryker/spryker-docs/blob/master/docs/pbc/all/identity-access-management/202404.0/manage-using-glue-api/glue-api-authenticate-as-a-customer.md

uses the user sonia but it does not work either.

I always get:

{"errors":[{"code":"003","status":401,"detail":"Failed to authenticate user."}]}

What is missing? Thank you.