Newby here, literally installed Strapi a few hours ago for the first time;
Can someone please explain the difference in Users: In the localhost:1377/admin UI there is
Users under collection types, where I can Add New User;
- in Settings/Admin Panel / Users, I can also Create New User
First one are
user-permission plugin users: they will user your api but they never will have access to your admin panil.
Second one are the admin panel users: acccess to admin panel, no access to API.
Not entirely true but that’s effectively what it is intended. Technically the JWT returned for Admin users can use the API endpoints as well.
I tried to logged in with a super user admin on our application, and i couldn’t.
You won’t be able to use the
/auth/local endpoint with an admin user but you can use the
/admin/login endpoint and use that admin JWT on the users-permissions endpoints.
I tried to login using the given link:
http://localhost:1337/admin/login and the request had the body:
But got the response as:
"message": "Missing credentials",
what am I doing wrong? Thanks in advance.
You are using the wrong keys for the admin endpoint. If you go try and login to the admin panel and look at your F12 menu (network tab) you can see the body payload sent and the URL it’s sent to.