Thank you — that was really useful!
So here's where I'm at... Warts and all.
This "works" as it stands but some things not ideal (e.g. use of session, curl).
Let me know you have any feedback/thoughts...
namespace IPSE\Authenticate\Pub\Controller;
//use...
I'm trying to get a value from the URL.
Route set up as follows:
This is the action code:
public function actionIndex(ParameterBag $params)
{
echo "<pre>";
print_r($params);
echo "</pre>";
return $this->message('Hello world!');
}
if I visit...
Ha — I'm new to XenForo development so probably not the best person for the job.
I'm actually working on a requirement for my current employer... I'm their in-house Drupal developer but they have a need for this and I'm the only developer here!
User follows link to forum with authentication token in query string:
https://FORUM_URL/authenticate?token=VLR99kInXPRLOhLEbtQ8MDOMMmuVnPWt
We pass back token to API endpoint with basic HTTP auth including API key as username (no password):
https://REMOTE_API/user/{token}/
API key, endpoint...
I'm creating a custom XenForo 2.0 add-on for remote authentication.
I'm trying to figure out how to authenticate a user using an email address alone.
We are using a basic HTTP Authorisation header for token based validation via main website that returns a valid email in a JSON response. I have...
That's correct, Unregistered / Unconfirmed don't have permissions to view anything.
This seems to be the key override here:
public function assertViewingPermissions($action) {}
Thanks!
I have created a custom route as follows:-
I have created the add-on package and appropriate class which currently looks like a bit like this:-
namespace IPSE\Authenticate\Pub\Controller;
class Authenticate extends \XF\Pub\Controller\AbstractController {
public function...
OK. I manually created the tables/fields but those CLI commands are very handy!! I had read that but already forgotten by the time I got to the tutorial.
Sure — I'm aware that using a GUI just runs the queries in the background (y)
But basically the answer is "yes" — you have to manually create the additional tables/columns in whatever way you see fit.
Thanks for confirming!
I haven't reached the end of the tutorial yet... :)
I'm following the dev tutorial for XenForo2.0.
https://xf2demo.xenforo.com/dev-docs/lets-build-an-add-on/#creating-the-setup-class
Underneath the instructions for the Setup class it says "Don't forget to execute the queries yourself!"
Does this mean manually running SQL queries? Or creating...