From d619f4116b4cc5b288328899d1651b41eee69012 Mon Sep 17 00:00:00 2001 From: Milos Stojanovic Date: Thu, 23 Apr 2020 12:22:55 +0200 Subject: [PATCH] Website generation with Couscous --- configuration/auth.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/auth.html b/configuration/auth.html index 2e4cb6a..48074b1 100644 --- a/configuration/auth.html +++ b/configuration/auth.html @@ -170,8 +170,8 @@ VALUES ], ],

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)[https://github.com/filegator/filegator/blob/master/backend/Services/Auth/AuthInterface.php] to connect those two. Basically, this new adapter will try to authenticate users in your application and store a (User)[https://github.com/filegator/filegator/blob/master/backend/Services/Auth/User.php] object into the filegator's session.

-

Please look at this simplest (demo auth adapter)[https://github.com/filegator/demo_auth_adapter] to see how all this works.

+

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 store a User object into the filegator's session.

+

Please look at this simplest demo auth adapter to see how all this works.

API authentication

Front-end will use session based authentication to authenticate and consume the back-end.

Note: The application will not work if you disable cookies.