Website generation with Couscous

This commit is contained in:
Milos Stojanovic
2020-04-23 16:53:31 +02:00
parent d619f4116b
commit 222118d523

View File

@@ -169,9 +169,9 @@ VALUES
'database' => 'filegator',
],
],</code></pre>
<h2 id="custom-authentication-using-3rd-party">Custom Authentication using 3rd party</h2>
<p>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 <a href="https://github.com/filegator/filegator/blob/master/backend/Services/Auth/AuthInterface.php">AuthInterface</a> to connect those two. This new adapter will try to authenticate users in your application and store a <a href="https://github.com/filegator/filegator/blob/master/backend/Services/Auth/User.php">User</a> object into the filegator's session.</p>
<p>Please look at this simplest <a href="https://github.com/filegator/demo_auth_adapter">demo auth adapter</a> to see how all this works.</p>
<h2 id="custom-authentication-using-3rd-party-wordpress-or-similar">Custom Authentication using 3rd party (WordPress or similar)</h2>
<p>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 <a href="https://github.com/filegator/filegator/blob/master/backend/Services/Auth/AuthInterface.php">AuthInterface</a> to connect those two. This new adapter will try to authenticate users in your application and translate each user into filegator <a href="https://github.com/filegator/filegator/blob/master/backend/Services/Auth/User.php">User</a> object.</p>
<p>You can look at this simple <a href="https://github.com/filegator/wp_auth_adapter">WordPress auth adapter</a> to see how all this works.</p>
<h2 id="api-authentication">API authentication</h2>
<p>Front-end will use session based authentication to authenticate and consume the back-end.</p>
<p>Note: The application will not work if you disable cookies.</p>