We try to upgrade our app from v1.9 to v2.
Beside the fact that V2 is much faster (!) we struggling with the following error:
First we login as demo user:
URL (POST):
…/api/v2/user/session
With body:
{
“email”: "user@test.com",
“password”: “password”,
“duration”: 0
}
This works and returns a session_token and a session_id.
In next step we try to call the service “db” / app “apptest”
URL (GET):
…/api/v2/db
With header:
X-DreamFactory-Session-Token --> session_token from above
X-DreamFactory-Application-Name --> apptest
This returns:
“error”: {
“context”: null,
“message”: “Access Forbidden.”,
“code”: 403,
We have created a role with permissions on all services. Also we enabled CORS with * and assigned created role to user.
Problem stays the same on local install and on dreamfactory enterprise. We also tested with different services,users and roles.