Strapi: Can't connect with Postman using a authentication

Created on 23 Apr 2018  路  3Comments  路  Source: strapi/strapi

When i do a request with postman this error occur:

{
"statusCode": 401,
"error": "Unauthorized",
"message": "Unauthorized"
}

when i choose basic auth, and pass a user and password created in the GUI Admin Panel, this error occur:

{
"statusCode": 401,
"error": "Unauthorized",
"message": "Invalid token."
}

i dont know how to create a token, i dont see any option in the GUI Admin to create this token, what could be?

help wanted

Most helpful comment

Had this same problem, fixed by setting Body to x-www-form-urlencoded and using the params "identifier" and "password"

All 3 comments

Hello @profjefferson can you check the documentation https://strapi.io/documentation/guides/authentication.html

I readed the documentation before, but now i can get the token with postman, was a mistake with params, thank you!

Had this same problem, fixed by setting Body to x-www-form-urlencoded and using the params "identifier" and "password"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wes-cutting picture wes-cutting  路  3Comments

zhoub picture zhoub  路  3Comments

jskorepa picture jskorepa  路  3Comments

OrestTs picture OrestTs  路  3Comments

derrickmehaffy picture derrickmehaffy  路  3Comments