https://github.com/netauth/sftpgo-hook
External authorization hook for sftpgo
https://github.com/netauth/sftpgo-hook
authentication authorization sftpgo
Last synced: 5 months ago
JSON representation
External authorization hook for sftpgo
- Host: GitHub
- URL: https://github.com/netauth/sftpgo-hook
- Owner: netauth
- License: mit
- Created: 2022-02-24T21:48:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-31T08:18:09.000Z (over 1 year ago)
- Last Synced: 2024-12-31T09:22:39.129Z (over 1 year ago)
- Topics: authentication, authorization, sftpgo
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sftpgo-hook
This is a hook as described in the SFTPGo documentation for [external
authentication](https://github.com/drakkan/sftpgo/blob/main/docs/external-auth.md)
that allows you to validate your SFTPGo users via NetAuth.
It can be enabled by configuring the following environment variables:
```
SFTPGO_DATA_PROVIDER__EXTERNAL_AUTH_HOOK=/absolute/path/to/sftpgo-hook
SFTPGO_COMMAND__COMMANDS__0__PATH=/absolute/path/to/sftpgo-hook
SFTPGO_COMMAND__COMMANDS__0__ENV=SFTPGO_NETAUTH_REQUIREGROUP=optional-group,SFTPGO_NETAUTH_HOMEDIR=/base/path/for/netauth/users
SFTPGO_COMMAND__COMMANDS__0__HOOK=external_auth
```