authentication problems
-
stefano.leone
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 8
-
Thank you received: 0
-
-
8 years 11 months ago #4529
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 11 months ago #4532
by admin
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.143 seconds