Skip to content

filegator/demo_auth_adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 23, 2020
4463bef · Apr 23, 2020

History

2 Commits
Apr 23, 2020
Apr 23, 2020
Apr 23, 2020

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' => '/',
            ],
        ],

About

Demo auth adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages