Cookies not being saved after OAuth2 authentication

I added a comment to an issue submitted yesterday regarding OAuth authentication and cookies.