mirror of
https://github.com/filegator/filegator.git
synced 2025-08-04 20:17:29 +02:00
Docs upd
This commit is contained in:
@@ -58,11 +58,11 @@ At the end, open `configuration.php` and update AuthInterface handler to reflect
|
|||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
||||||
## Custom Authentication using 3rd party
|
## Custom Authentication using 3rd party (WordPress or similar)
|
||||||
|
|
||||||
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. 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.
|
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. This new adapter will try to authenticate users in your application and translate each user into filegator [User](https://github.com/filegator/filegator/blob/master/backend/Services/Auth/User.php) object.
|
||||||
|
|
||||||
Please look at this simplest [demo auth adapter](https://github.com/filegator/demo_auth_adapter) to see how all this works.
|
You can look at this simple [WordPress auth adapter](https://github.com/filegator/wp_auth_adapter) to see how all this works.
|
||||||
|
|
||||||
|
|
||||||
## API authentication
|
## API authentication
|
||||||
|
Reference in New Issue
Block a user