Is there anyway to bypass authentication?

Hi everyone!

Does anyone know if there is anyway to bypass Dolibarr authentication? Maybe it is an stupid question, but I am customizing a Dolibarr installation to add some new features, and I need to create a callback page to asynchronously receive information for some transactions, and I to be able to use Dolibarr libraries without user authentication, and I searched the forum but found nothing regarding the topic.

Thanks a lot in advance!

add this before include “main.inc.php”

<?php
define("NOLOGIN",1);		// This means this output page does not require to be logged.
require '../../main.inc.php';

look in “/htdocs/public/” for more examples

Thanks a lot for the tip, I will give it a try later today

Hi,

You can also use the API : https://wiki.dolibarr.org/index.php/Module_Web_Services_REST_(developer)