I’m building an intranet application which will sit behind an existing SiteMinder implementation. I am hoping to simply check that the REMOTE_USER environment variable is set and if it is use that to authenticate against the Users table. If it isn’t, it’ll redirect to an auto-add controller which will create the new user, but I’m currently only worried about checking the variable and authorizing users that already exist in the table.
I currently have the app up and running locally using the standard Authentication/Authorization plugins as outlined in the CMS tutorial, and am now looking to convert it to using the environment variable rather than email/password; I have configured Apache to hard-set that variable for testing.
I am looking for advice on how to proceed. I am thinking that I need to implement Authentication.Callback something like:
$authenticationService->loadIdentifier('Authentication.Callback', [ 'callback' => ??? ]);
But am unclear as to how to create a valid callback. Would someone be willing to point me in the right direction?