Skip to content

filegator/demo_auth_adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Demo Auth Adapter for FileGator

This adapter is the simplest showcase for the Auth adapter structure. It will add a single demo user to the FileGator app.

Requirements

FileGator v7+

Install

  1. Copy DemoAuth.php file to filegator/backend/Services/Auth/Adapters/

  2. Replace your current Auth handler in configuration.php file like this:

        'Filegator\Services\Auth\AuthInterface' => [
            'handler' => '\Filegator\Services\Auth\Adapters\DemoAuth',
            'config' => [
                'name' => 'Test User',
                'username' => '[email protected]',
                'password' => 'user123',
                'role' => 'user',
                'permissions' => ['read', 'write', 'upload', 'download', 'batchdownload', 'zip'],
                'homedir' => '/',
            ],
        ],

Releases

No releases published

Packages

No packages published

Languages