sftpgo API key authentication #2060
Replies: 2 comments
-
|
There is no UI for this. To use an API key authentication for a user you'll need to do the following:
|
Beta Was this translation helpful? Give feedback.
-
|
I had some trouble (due to personal lack of knowledge) to create a n8n workflow for this. Let me share what is working for me so others can copy the steps. n8n Workflow Breakdown: SFTPGo API HandshakeThis documentation provides a guide to rebuilding the three-node authentication sequence used to interact with the SFTPGo API. 1. Node: Get Token (The Login)This node starts the session by exchanging administrative credentials for a session token.
2. Node: Get API Key (The Exchange)This node swaps the session token for a functional API key.
{
"name": "sftpgoapikey",
"scope": 1,
"admin": "automation"
}
3. Node: HTTP Request (The Action)This node performs the actual administrative task (like listing users) using the API key generated in the previous step.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to set up sftpgo API key authentication on UI?
There are no examples on sftpgo docs.
I see only "API key authentication" -> "Allow to impersonate the user, in REST API, with an API key"
I tried curl requests with "Authorization: Basic" and "Authorization: Bearer" headers, but simple "username:password" didn't work
Beta Was this translation helpful? Give feedback.
All reactions