Authorization for the API
If you try using the URL of the previous section on your browser, you will get a 403 forbidden response. Web Services in Joomla! are powerful as they allow you to fully manage and get information from your site. So, none of the Joomla! Web Services are public, and you need authorization to use them.
Joomla! comes with two different authorization methods:
- Basic authorization: This method is the most basic authorization and it’s not recommended to use in live sites. It uses your username and password in the request.
- Joomla! token authorization: This method is more secure, and it uses a secure token linked to your user, which only the user can check.
Authorization for Joomla! Web Services is handled by the api-authorization
plugin type so it’s possible to add more authentication methods.
Let’s see more details about these methods.
Basic authorization
The basic authorization method for Joomla! Web Services consists...