dotkernel / api

DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
https://docs.dotkernel.org/api-documentation/
MIT License
35 stars 5 forks source link

Documentation credentials #52

Closed MarioRadu closed 3 years ago

MarioRadu commented 3 years ago

The credentials from the /documentation route are not updated to reflect the last changes.

In the documentation for the /oauth2/generate the default credentials are :

{
  "grant_type": "password",
  "client_id": "dotkernel",
  "client_secret": "dotkernel",
  "scope": "api",
  "username": "test@dotkernel.com",
  "password": "dotkernel"
}

If we try them it will return a 401 Unauthorized error.

The "client_id" and "client_secret" should be changed to :

client_id : frontend client_secret : frontend

if we want to login as a regular user, OR :

client_id : admin client_secret : admin

if we want to login as an admin.

I didn't found the credentials to login as an admin, I only know the username, which is admin. Where can I find the password?

alexmerlin commented 3 years ago

here: dotadmin

arhimede commented 3 years ago

@MarioRadu and @kakapiciu Please clarify this in the documentation ASAP

MarioRadu commented 3 years ago

This issue was resolved.