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 ], ],
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.
-- Download: v7.4.0
+- Download: v7.4.1
- Unzip files and upload them to your PHP server
- Make sure your webserver can read and write to
filegator/repository/
and filegator/private/
folders
- Set the website document root to
filegator/dist/
directory. This is also known as 'public' folder
@@ -151,8 +151,8 @@
apt install -y wget unzip php apache2 libapache2-mod-php php-zip
cd /var/www/
-wget https://github.com/filegator/static/raw/master/builds/filegator_v7.4.0.zip
-unzip filegator_v7.4.0.zip && rm filegator_v7.4.0.zip
+wget https://github.com/filegator/static/raw/master/builds/filegator_v7.4.1.zip
+unzip filegator_v7.4.1.zip && rm filegator_v7.4.1.zip
chown -R www-data:www-data filegator/
chmod -R 775 filegator/