I'm making an app (like single sign on) that:
- user request to login service A
- get username/password from db and login A by web_api of A
- make a HttpResponseRedirect, set cookie and return to user.
User <==> app <==> service(https)
The whole process is good in HTTP. but when service A is under HTTPS then it's not work. The cookie set in step 3 will disappear when user be redirected to A website.
response = HttpResponseRedirect('https://xxxx/service')
response.set_cookie(key=cookie.name, value=cookie.value,
domain=cookie.domain, path=cookie.path, expires=cookie.expires)