kartoza / freshwaterbiodiversity.org

1 stars 11 forks source link

Fix social account login in production server #281

Closed dimasciput closed 5 years ago

dimasciput commented 5 years ago

Problem

Couldn't login with google or github in production server, http://freshwaterbiodiversity.org.

Solution

@timlinux we need them to create oauth app in github and google, then we can put the secret key to the freshwater site. But for now I will create it with my account.

dimasciput commented 5 years ago

@Vries14 please test it in the production server, thanks.

Vries14 commented 5 years ago

@dimasciput , When I try to log in with social account it takes me to a sign-up page saying that im about to log in with the social account. When I click on sign up it tells me that there are already users registered with those email address Screenshot_2018-10-31 Signup.png

dimasciput commented 5 years ago

@Vries14 yes, please use other email address

Vries14 commented 5 years ago

@dimasciput I tried to log in with Github and I got an email: _A third-party OAuth Application (Freshwaterbiodiversity) with publicrepo, read:org, and user:email scopes was recently authorized to access your account. Visit https://github.com/settings/connections/applications/576c290ee27700850f26 for more information. But I still cant log in with Github account, It takes me back to the sign up page with my email address from Github account already inserted in column.

dimasciput commented 5 years ago

@Vries14 ok, try again. I removed all of your accounts from the site.

Vries14 commented 5 years ago

That must have been the problem, Im now able to login with social accounts