mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-11-23 22:04:50 +02:00
Send output from external_auth_hook to logs
Signed-off-by: Felix Eckhofer <felix@eckhofer.com>
This commit is contained in:
committed by
Nicola Murino
parent
71f691b208
commit
ec67b67e9e
@@ -21,6 +21,8 @@ The program must write, on its standard output:
|
||||
- an empty string, or no response at all, if authentication succeeds and the existing SFTPGo user does not need to be updated. This means that the credentials already stored in SFTPGo must match those used for the current authentication.
|
||||
- a user with an empty username if the authentication fails
|
||||
|
||||
Any output of the program on its standard error will be recorded in the sftpgo logs with sender `external_auth_hook`.
|
||||
|
||||
If the hook is an HTTP URL then it will be invoked as HTTP POST. The request body will contain a JSON serialized struct with the following fields:
|
||||
|
||||
- `username`
|
||||
|
||||
Reference in New Issue
Block a user