We’re trying to write our own authentication module for Matomo 3.14.1 (with the idea of moving to 4.x within the year).
Everyone who authenticates into our system should automatically be logged in when they open Matomo.
Everyone should be able to view data for all sites.
Authentication should occur by an item in the client’s session header, which Matomo then sends to an authentication service, which replies with a true (allowed in) or false (nope).
I’ve been mucking around plugins/Login/Auth.php . I can get to the authorized==true in our system, but I’m not sure what the authentication module is supposed to return to authenticate a user.