Unable to login backend

377 views
Skip to first unread message

bisdak ako

unread,
May 6, 2016, 2:17:07 AM5/6/16
to Fusio


already made this config but still getting same error...

var fusio_url = 'http://127.0.0.1/fusio/public/index.php/';

Christoph Kappestein

unread,
May 6, 2016, 11:47:19 AM5/6/16
to Fusio
Hi, could you show me the response of the "/backend/token" request? The "Authentication failed" error occurs mostly if Fusio cannot determine the correct API endpoint. In your case I would assume that the "fusio_url" should be "http://10.8.90.102:8080/ossapi/index.php/" but this depends on the folder where you have Fusio installed.

Christoph Kappestein

unread,
Aug 27, 2016, 8:48:45 AM8/27/16
to Fusio
The following list should help users to resolve backend login problems:
  • The javascript Backend-App uses the wrong API endpoint
This can be tested with the browser developer console. If you login at the backend with no credentials the app should make an request to the /backend/token endpoint which should return a JSON response i.e.:
{ "error": "invalid_request", "error_description": "Credentials not available" }
If this is the case your app is correctly configured. If this is not the case you can set the endpoint url at the backend.htm
  • Apache module mod_rewrite is not activated
In case you use Apache as webserver you must activate the module mod_rewrite and so that the public/.htaccess file is used. Besides clean urls it contains an important rule which tells Apache to redirect the Authorization header to Fusio otherwise Apache will remove the header and Fusio can not authenticate the user
  • Fusio API returns an error
In this case Fusio can probably not write to the cache/ folder. To fix the problem you have to change the folder permissions so that the user of webserver can write to the folder. If there is another error message it is maybe a bug. Pelase report the issue to GitHub.

Reply all
Reply to author
Forward
0 new messages