This auth adapter allows to login into Filegator using Elgg as an auth backend. The adapter simply uses Elggs Webservices method
auth.gettoken
to check if the given credentials are valid.
There is no other feature than authenticating.
Simply put the above file into backend/Services/Auth/Adapters.
To use the adapter, configure it in configuration.php like this:
'Filegator\Services\Auth\AuthInterface' => [
'handler' => '\Filegator\Services\Auth\Adapters\Elgg',
'config' => [
'elggApiUrl' => '<your elgg url>/services/api/rest/json/?method=auth.gettoken',
'elggAdmins' => [<a list of usernames which should be filegator admins>]
],
],
All authenticated users will get all rights in Filegator.