External authentication - missing password in POST payload #2158
-
|
Hi, I'm planning to deploy SFTPGo in GCP, ideally via GCP marketplace and I'm evaluating it locally. I need to authenticate sftp users against WorkOS (the sftp connections, not WebClient). Using OpenID seems to be only available via WebClient, so I have used External Authentication . I'm running sftpgo from docker compose with no custom config file provided. I have setup hook via I have made this work if I was just returning from a hook a dummy user with json like: Obviously, I would like to use the actual username/password provided to authenticate. eg. sample data from POST payload send to hook by sftpgo: Why is the password not passed down to hook? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
I think I have solved the issue of missing password by returning invalid auth when either username or password is missing. SFTPGo call the hook again, this time with |
Beta Was this translation helpful? Give feedback.
-
|
So the questions to answer are:
Ideally, I would like the virtual folder (it will be a user folder in GCS) to be created on the fly, but I'm ok to create virtual folders per user via API earlier, I would need to know their ids in external auth program somehow which complicates matters |
Beta Was this translation helpful? Give feedback.
thanks @drakkan,
re: the
keyboard_interactiveyeah, I was suspecting that client triedkeyboard_interactive, even though I specifically said to use standardpasswordmethod. Either way the solution was to return an empty user until a username/password were both passed and authenticated properly.re: virtual folders mapped path - that is great news to avoid duplication.
Is there a way to auto-create the virtual folders based on output from auth hook with any version of sftpgo? (testing with oss one now locally)