diff --git a/configuration/auth.html b/configuration/auth.html index c454a11..57f0f9d 100644 --- a/configuration/auth.html +++ b/configuration/auth.html @@ -170,8 +170,7 @@ VALUES ], ],

Configuring Auth service to use WordPress

-

This adapter allows WordPress users to use FileGator.

-

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

+

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

        'Filegator\Services\Auth\AuthInterface' => [
             'handler' => '\Filegator\Services\Auth\Adapters\WPAuth',
             'config' => [
@@ -186,14 +185,12 @@ VALUES
 
  • permissions is the array of permissions given to each user
  • private_repos each user will have its own sub folder, admin will see everything (false/true)
  • -

    With more recent versions of FileGator you can set guest_redirection in your configuration.php to redirect logged-out users back to your WP site:

    +

    Note: With more recent versions of FileGator you can set guest_redirection in your configuration.php to redirect logged-out users back to your WP site:

    'frontend_config' => [
       ...
         'guest_redirection' => 'http://example.com/wp-admin/',
       ...
     ]
    -

    Note: If your blog and FileGator are not on the same domain or subdomain, you have to customize cookie domain in wp-config.php

    -
    define('COOKIE_DOMAIN', '.domain.com')

    Custom Authentication using 3rd party

    If you want to use FileGator as a part of another application, you probably already have users stored somewhere else. What you need in this case is to build a new custom Auth adapter that matches the AuthInterface to connect those two. This new adapter will try to authenticate users in your application and translate each user into filegator User object.

    API authentication

    diff --git a/install.html b/install.html index 5f14d7f..b80c5a8 100644 --- a/install.html +++ b/install.html @@ -136,7 +136,7 @@

    Download precompiled build

    Precompiled build is created for non-developers. In this version, the frontend (html, css and javascript) is compiled for you and the source code is removed so the final archive contains only minimum files.