Mautic Community Forums

Joomla API Callback is not valid.

Hi I’m trying to configure the Joomla Plugin API.

I have selected OAuth 1.a on the plugin and have set OAuth to 1 in mautic.

When I try to authorize the API it redirects me to my mautic loginpage, after logging in I get this message;

Callback is not valid.



I have tried debugging and these are the settings that were recorded,

Settings used for OAuth



array (

‘baseUrl’ => ‘https://xtatic.com.au/mautic’,

‘version’ => ‘OAuth1a’,

‘clientKey’ => ‘3qii4fpopum8cks00ko44wosg0444w4wkg4sggocwwo440c04w’,

‘clientSecret’ => ‘48jlz5t5m3qcckgkoc48c08w8os8kc4c0sk4ks0sk4swkws8cg’,

‘callback’ => ‘http://globaldivingacademy.com/administrator’,

)



I’m not sure what I’m doing wrong, but I’ve been trying for hours, If anybody can help it would be greatly appreciated,

Thanks in advance,

Tim

Hi I’m trying to configure the Joomla Plugin API.
I have selected OAuth 1.a on the plugin and have set OAuth to 1 in mautic.
When I try to authorize the API it redirects me to my mautic loginpage, after logging in I get this message;
Callback is not valid.

I have tried debugging and these are the settings that were recorded,
Settings used for OAuth

array (
‘baseUrl’ => ‘https://xtatic.com.au/mautic’,
‘version’ => ‘OAuth1a’,
‘clientKey’ => ‘3qii4fpopum8cks00ko44wosg0444w4wkg4sggocwwo440c04w’,
‘clientSecret’ => ‘48jlz5t5m3qcckgkoc48c08w8os8kc4c0sk4ks0sk4swkws8cg’,
‘callback’ => ‘http://globaldivingacademy.com/administrator’,
)

I’m not sure what I’m doing wrong, but I’ve been trying for hours, If anybody can help it would be greatly appreciated,
Thanks in advance,
Tim

Hi, the callback URL must be exactly the same in Mautic API credential configuration and what Joomla plugin sends in the request.

I have prepared a new version of the plugin which doesn’t use the /administrator, but the Joomla frontend URL. More described here:

https://github.com/mautic/mautic-joomla/issues/15

If you want to test it, that’d be great. I’d submit that version to main Mautic-Joomla plugin repository.

Hi I’ve put the new plugin in and changed the callback uri to the front end,
I’m getting an incorrect access token parranaters returned:Array message on the front end and this is the log;
Recent Log (/home2/tgrkarat/public_html/globaldivingacademy/logs/plg_mautic.php)

2015-07-11T20:06:16+00:00 ERROR 49.197.45.187 plg_mautic Incorrect access token parameters returned: Array
2015-07-11T20:06:14+00:00 INFO 49.197.45.187 plg_mautic Authorize method called.
2015-07-11T20:05:04+00:00 ERROR 49.197.45.187 plg_mautic Incorrect access token parameters returned: Array
2015-07-11T20:05:04+00:00 INFO 49.197.45.187 plg_mautic Authorize method called.
2015-07-11T20:02:32+00:00 ERROR 49.197.45.187 plg_mautic Incorrect access token parameters returned: Array
2015-07-11T20:02:31+00:00 INFO 49.197.45.187 plg_mautic Authorize method called.
2015-07-11T20:00:13+00:00 ERROR 49.197.45.187 plg_mautic Incorrect access token parameters returned: Array
2015-07-11T20:00:12+00:00 INFO 49.197.45.187 plg_mautic Authorize method called.
2015-07-11T19:55:39+00:00 ERROR 49.197.45.187 plg_mautic Incorrect access token parameters returned: Array
2015-07-11T19:55:39+00:00 INFO 49.197.45.187 plg_mautic Authorize method called.
2015-07-11T19:52:34+00:00 ERROR 49.197.45.187 plg_mautic onUserAfterSave::leadApi::create - response: 0: token_rejected
)
‘email’ => ‘kal@kalkal.com’,
‘lastname’ => ‘’,
‘firstname’ => ‘kal’,
‘ipAddress’ => ‘49.197.45.187’,
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave::mauticUser: array (
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave: Send the user to Mautic.
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave::send_registered: ‘1’
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave::success: true
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave::isNew: true
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave method called.
2015-07-11T19:47:31+00:00 ERROR 49.197.45.187 plg_mautic onUserAfterSave::leadApi::create - response: 0: parameter_absent
)
‘email’ => ‘capt@america.com’,
‘lastname’ => ‘’,
‘firstname’ => ‘capt’,
‘ipAddress’ => ‘49.197.45.187’,
2015-07-11T19:47:30+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave::mauticUser: array (
2015-07-11T19:47:30+00:00 INFO 49.197.45.187 plg_mautic onUserAfterSave: Send the user to Mautic.
Settings used for OAuth

array (
‘baseUrl’ => ‘https://xtatic.com.au/mautic’,
‘version’ => ‘OAuth1a’,
‘clientKey’ => ‘3qii4fpopum8cks00ko44wosg0444w4wkg4sggocwwo440c04w’,
‘clientSecret’ => ‘48jlz5t5m3qcckgkoc48c08w8os8kc4c0sk4ks0sk4swkws8cg’,
‘callback’ => ‘http://globaldivingacademy.com/’,
)

not sure what’s going on,
Thanks
Tim

It doesn’t work for me either, it also says callback not valid.

For me only working selection OAuth2 and cleaning the cache!

@leolopesbraga tried that and I get a 404, revert back and still get callback not valid :frowning:

@leolopesbraga Actually I just deleted the old credentials and recreated new ones using the OAuth2 and it did work fine this time, thanks for the heads up :slight_smile: