-
|
Hi all, fist all, thanks Drakkan for all your work. SFTPGo is a great tool :) :) I'm running some test to make sure it fulfills all our needs before buying an So far, I've been able to get it working with AWS Cognito as an IdP via OIDC (AzureAD => Cognito => SFTPGo). Looking at the documentation, it seems that using the pre_login_hook is the way to go. The doc points to the OpenAPI schema to find the structure of a SFTPGo user, I am probably not reading it properly, Can someone point me in a direction of an script example (bash/python/go... whatever ^^) thanks in advance ;) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
|
Hi, thanks for evalutaing SFTPGo. Most of the fields are optional, you are right the OpenAPI schema does not specify mandatory ones. You can find a minimal example here. This should be enough to get you started. After subscribing to an AWS offering, you can write to the email found on the AWS marketplace page for basic support questions like this one. Please always include your AWS ID, I don't answer if your usage is very low, I'm sorry. I have had disappointing experiences in the past. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Here is a minimal example for an S3 user. I assume you have AWS credentials from the environment. If not, you must also define the AWS credentials when creating the user A such user will be restricted to the Instead of reading the OpenAPI specification from the yaml file, I suggest opening |
Beta Was this translation helpful? Give feedback.
-
|
For future reference, here is a working pre_login_hook that kinda works, (edited)
check the script below for a fully working version@drakkan The connection cinematic is the following: 1st time the user clicks on "Login with OpenID" (at this point the user doesn't exist in sftpgo) the second time it clicks on "Login with OpenID" it can login just fine (at this point the user exists in sftpgo) I was expecting something like that : Have I missed something somewhere ? PS: would you be interested that I create a pull request with this script (with some comments added and all) as an example ? |
Beta Was this translation helpful? Give feedback.
Here is a minimal example for an S3 user. I assume you have AWS credentials from the environment. If not, you must also define the AWS credentials when creating the user
A such user will be restricted to the
users/user1prefix.Instead of reading the OpenAPI specification from the yaml file, I suggest opening
http://<sftpgo_ip>:8080/openapi/swagger-ui/in your browser and testing the API using swagger UI.