Recent content by Kester Hynds

  1. Kester Hynds

    XF 2.0 Login/authenticate user without password

    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...
  2. Kester Hynds

    XF 2.0 Getting value from route parameter (ParameterBag / action problems...)

    Doh! If I looked harder at the existing route configs I would have noticed... Eventually! Thanks :)
  3. Kester Hynds

    XF 2.0 Getting value from route parameter (ParameterBag / action problems...)

    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...
  4. Kester Hynds

    XF 1.5 "An unexpected database error occurred. Please try again later."

    Well I never!!! I had no idea there were hidden error messages. Helped me target the problem! Thank you.
  5. Kester Hynds

    XF 2.0 Login/authenticate user without password

    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!
  6. Kester Hynds

    XF 2.0 Login/authenticate user without password

    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...
  7. Kester Hynds

    XF 2.0 Login/authenticate user without password

    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...
  8. Kester Hynds

    XF 2.0 Routing to URL when non-authenticated

    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!
  9. Kester Hynds

    XF 2.0 Routing to URL when non-authenticated

    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...
  10. Kester Hynds

    XF 2.0 XenForo add-on development

    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.
  11. Kester Hynds

    XF 2.0 XenForo add-on development

    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... :)
  12. Kester Hynds

    XF 2.0 XenForo add-on development

    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...
Top Bottom