Cloudkibo / CloudKibo

CloudKibo
0 stars 0 forks source link

Server side code for cell # authentication #447

Closed sojharo closed 8 years ago

sojharo commented 8 years ago

This task would be done on server side of CloudKibo so that server is able to recognize the token given to mobile by facebook servers.

Our server will talk to facebook server and validate if the token is authentic or not.

sojharo commented 8 years ago

I have worked on it. Our server is able to contact facebook server now. Our server gets token from mobile and to validate that token it sends it to facebook servers. Facebook server returns the phone number and account id of that user if the token is valid. Following is the information that we get from Facebook server on valid authentication:

screenshot from 2016-06-01 18 21 53

In this way, this task is around 80% done. Now, within next hour, I would do some more work on this task to mark it complete. The remaining work is the following:

  1. If the account id given to us by facebook is completely new for us, then create one account for this user on cloudkibo server. and then send the data that mobile requested.
  2. If we already know this account id then just send the data that mobile requested.
  3. I would be removing the dependency of having username and email address as required information on cloudkibo database. I would remove these fields altogether. I would keep status and other fields.
  4. Both clients will have to make one screen in which on first time login the display name would be asked by user. (whatsapp does this, it also asks for display picture on first time loging). On server side, I would add the route to get the display name from mobile and save it.
  5. Finally, I would add the route to delete the user from facebook server if required. (this is optional)
jekram commented 8 years ago

Great job. Sojharo. Thanks

sojharo commented 8 years ago

This task is complete now. There were changes at many places which were done. Please note that one to one for web will not work with these changes

jekram commented 8 years ago

Thanks. Please open a separate task to make 1-1 work with Web.

sojharo commented 8 years ago

Yes I have opened the issue:

https://github.com/Cloudkibo/CloudKibo/issues/448

jekram commented 8 years ago

Thanks