Remote authentication can be carried out through a POST or a GET. The plugin checks against $_REQUEST values.
In order to use this module, the Remote Authentication Extension within ActiveMember360 must be enabled.
The module requires the following three values:
$_REQUEST[‘mbr_auth’] | The value passed should be one of your security codes defined in Plugin Options => Main Settings. |
$_REQUEST[‘user’] | The value passed should be the user’s primary email address, as stored in ActiveCampaign. |
$_REQUEST[‘pass’] | The value passed should be the user’s password as stored in the field ‘Password’ in ActiveCampaign. |
The module accepts the following optional values:
$_REQUEST[‘retfields’] | This value, if passed, is used to define which ActiveCampaign fields should be returned in the result array. If not specified, all contact fields will be returned. |
$_REQUEST[‘required_tags’] | In addition to a matching password, this value, if passed, defines which tags a user must have in order to successfully authenticate. In order to succeed, the user must have all tags specified. |
$_REQUEST[‘json’] | This value, if passed, is used to direct the module to return any data in JSON format. If not specified, the default method used is PHP’s serialize(). |
$_REQUEST[‘base64’] | This value, if passed, is used to direct the module to return the JSON or serialized return values in Base64 encoded format. |