SFTPGo pre-login hook: filters (denied_protocols, denied_login_methods) not applied when creating users dynamically #2176
Unanswered
tatsiana-komovich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a pre-login hook to dynamically create users on their first login via OIDC. (If users exists, the script will exit)
SFTPGo version: 2.6.4
Deployment: Kubernetes via Helm chart
Hook type: pre-login hook
My hook returns the following JSON:
Expected behavior:
The created user should only be able to access via HTTP (WebClient/REST API using OIDC).
Actual behavior:
The filters seem to not to be applied and filters are not saved in the user profile (in ACL section)
Are denied_protocols and denied_login_methods supported when creating users via pre-login hook?
If so, are there any mandatory fields or limitations when setting filters in dynamic user creation?
Is this the correct way to restrict access to HTTP/WebClient only for OIDC-created users?
Beta Was this translation helpful? Give feedback.
All reactions