AnsweredAssumed Answered

What does the "auth = true" parameter in entrypoint mean?

Question asked by Asaf Army on Mar 30, 2014
Latest reply on Mar 31, 2014 by Asaf Army
i'm adding a new entrypoint for a leads provider, to access and add leads to my SugarCRM system.

so i added a new entrypoint line in custom/Extension/application/Ext/EntryPointRegistry/customEntryPoint.php:

$entry_point_registry['AddNewLead']=
array('file' => 'custom/modules/Leads/addNewLead.php', 'auth' => true);

i want to create a user for each lead provider, that if one of the username or password in the GET Request, that he calls, are not identified as a user in sugar, h will be blocked. 

Does "'auth' => true" parameter does that automatically? block users that sends GET Requset with wrong user or password, as a parameter, to the entrypoint?

or does it mean the user must be logged in to sugar, which means it is always useless (how can an external user that calls an entrypoint be logged in the system?) and i need to write code in addNewLead.php file that will browse the users and check password.





Outcomes