× Requests and support related to jBackend.

authentication problems

  • stefano.leone
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago #4529 by stefano.leone
authentication problems was created by stefano.leone
Hi,
I just wrote a simple plugin with some resources.

It works perfectly with Access type Free.

When I try to switch to Access type User I get
{
"status": "ko",
"error_code": "REQ_AUR",
"error_description": "Authentication required"
}


I am passing working user details with POST

{"username":"test",
"password":"testpwd"
}


What I am missing?

Thanks in advance
stefano

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #4532 by admin
Replied by admin on topic authentication problems
Hi Stefano,
you need first to login to Joomla using the user plugin. After this you can call any request on the endpoint with access type "user". Remember to preserve the cookie (Joomla auth is cookie based).

Regards,
Luigi
The following user(s) said Thank You: stefano.leone

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds