aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.68k stars 1.01k forks source link

best way to manage sessions/cookies with chalice? #1568

Closed mowliv closed 3 years ago

mowliv commented 4 years ago

Hi guys,

What's the easiest way to have sessions or at least cookie management in a python chalice web app? Have looked around but haven't found a good solution. Am using AWS Cognito for user authorization and working on how to tie it in with sessions. Saw https://github.com/aws/chalice/issues/717 from 2018 but hoping there's something better than that by now.

(I did try asking this Q on stack exchange and also the Gitter chat area, but got no replies.)

jamesls commented 4 years ago

Hi, sorry for the late reply. Chalice doesn't provide any built-in way of managing session/cookies. This is something you'd have to manage yourself, as shown in the issue you linked. I typically see people use Chalice as just the Web API (and not the front end) and using the JWT (or similar) auth tokens directly.

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

mowliv commented 3 years ago

Gotcha. Thanks for the feedback.

On Wed, Dec 2, 2020 at 3:00 PM James Saryerwinnie notifications@github.com wrote:

Hi, sorry for the late reply. Chalice doesn't provide any built-in way of managing session/cookies. This is something you'd have to manage yourself, as shown in the issue you linked. I typically see people use Chalice as just the Web API (and not the front end) and using the JWT (or similar) auth tokens directly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws/chalice/issues/1568#issuecomment-737547297, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDDXTMVGNXYDYU4ZXX6LOLSS3BH5ANCNFSM4TEOUDYQ .