Base solution for your next web application
Open Closed

Social login - cookie persistence (facebook/google) #670


User avatar
0
efijeremiah created

Hi There,

the framework allow users to register and login in:

  1. normal application registration/login (filling up the details)
  2. social login

but when i'm trying to use the 2nd method (social login via google/facebook): I can register/login, when i close the browser and open it again, i need to login again and it's bad experience for the user.

When i use the 1st method (normal application registration/login) all scenario's work just fine, and the cookie is persistence.

need your quick advice/fix how to persist the cookie for the social login scenario?

Thanks Efi.


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Did you tried to change 3rd parameter to true in <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Web/Controllers/AccountController.cs#L660">https://github.com/aspnetzero/aspnet-ze ... er.cs#L660</a> 3rd parameter is for remember me and it's false. I will change it to true for next versions.

  • User Avatar
    0
    hikalkan created
    Support Team

    Changed it: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/commit/cec6b2e36b5adc399445e72ca8438a540da86fd9">https://github.com/aspnetzero/aspnet-ze ... 540da86fd9</a>