Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Campos do active_tenant vazios quando especificando tenant ID para account/v1/whoami #1

Open
kikoreis opened this issue Jul 12, 2021 · 0 comments

Comments

@kikoreis
Copy link

Quando um request é feito para o account/v1/whoami indicando um tenant ID, o active_tenant vem com os campos vazios:

curl -sH "x-tenant-id: <tenant ID>" \
  --url 'https://alpha.api.magalu.com/account/v1/whoami' \
  --header "x-api-key: $APIKEY"  | jq
{
  "uuid": "<meu UUID>",
  "preferred_email": "<meu email>",
  "first_name": "Christian",
  "last_name": "Reis",
  "active_tenant": {
    "uuid": "",
    "type": ""
  },
  "created_at": "2021-07-08T17:51:44Z",
  "updated_at": "2021-07-08T17:51:44Z",
  "last_accessed_at": "2021-07-08T17:51:44Z"
}

O correto seria o retorno indicar o ID especificado e o type correspondente. Mencionando que o default está vindo corretamente quando o tenant ID não é especificado, e que IDs inválidos são corretamente rejeitados.

@kikoreis kikoreis assigned kikoreis and unassigned kikoreis Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant