awslabs / web-client-for-aws-transfer-family

This solution creates a web portal for your customers to access your corporate Secure Shell File Transfer Protocol (SFTP) environment. It combines the benefits of using AWS Transfer for SFTP with an intuitive web browser interface for your non-technical users.
https://aws.amazon.com/solutions/implementations/web-client-for-aws-transfer-family/?did=sl_card&trk=sl_card
Apache License 2.0
73 stars 41 forks source link

Unable to Authenticate to AWS SFTP Transfer Family using Crowd #10

Open guyinhat opened 2 years ago

guyinhat commented 2 years ago

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 ^