web-client-for-aws-transfer-family icon indicating copy to clipboard operation
web-client-for-aws-transfer-family copied to clipboard

Unable to Authenticate to AWS SFTP Transfer Family using Crowd

Open guyinhat opened this issue 2 years ago • 0 comments

Ive built a Lambda in Python to auth with Atlassian Crowd, I get the correct HomeDirectory Response and so on, but I am unable to authenticate that to the AWS SFTP Transfer Family Service. When I try I get:

msg: "Missing cookie "access_token_cookie""

Using Cognito is not an option for this request. For comparison this Lambda gets the exact response Cognito provides, with different request headers.

From the documentation for AWS SFTP Transfer Family , verbatim, it says this:

"The JWT tokens are set in the access cookie (default name is set to access_token_cookie) and refresh cookie (default name is set to refresh_token_cookie) respectively. The tokens are used in subsequent HTTPS requests from the client to the web application where the python backend decrypts JWT tokens using KMS Decrypt API to get the username and password for that request and authenticate"

Trying to replicate that ^

guyinhat avatar Mar 08 '22 17:03 guyinhat