{ "id": "160806", "key": "AC-3744", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-06-09T22:03:01.000+0000", "created": "2016-06-06T09:18:37.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-09T22:03:01.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14559", "name": "ArrowDB" } ], "description": "When user(anand@nisostech.com) registers using arrowdb using api then it create account for that user (perfect), but if user logins from his facebook account with email address (anand@nisostech.com) then arrowdb create new account for that facebook user. Arrowdb don't map facebook user with user who has already register with similar email id.\r\n\r\n\r\n\r\n\r\nfb login using arrowdb external account \r\n\r\nhttps://api.cloud.appcelerator.com/v1/users/external_account_login.json?key=&pretty_json=true\r\n\r\nrequest :\r\ntype:facebook,\r\ntoken:EAADoNzpziVMBABK9kc4wXcV9e5pIo7LO0XswkOthz5xZCUqpUZAcCC9DDu2S0NJi28p3fiwzD7zuITJZAIK1uh7TIKDAmrultfZBju1noVkbwtX4ibbeLAy8pb2TZCVS6NDfye8X3xzAKX6NqyTdFDeLpYef0NOYu3UkX5Yxv5gZDZD\r\n\r\nresponse :\r\n{\r\n \"meta\": {\r\n \"code\": 200,\r\n \"status\": \"ok\",\r\n \"method_name\": \"externalAccountLogin\",\r\n \"session_id\": \"Cbmqwd3XXFydg4sD0RV2BZOW3bY\"\r\n },\r\n \"response\": {\r\n \"users\": [\r\n {\r\n \"id\": \"5747f35b04f995090a8de505\",\r\n \"created_at\": \"2016-05-27T07:12:27+0000\",\r\n \"updated_at\": \"2016-06-06T08:13:28+0000\",\r\n \"external_accounts\": [\r\n {\r\n \"external_id\": \"168807353521580\",\r\n \"external_type\": \"facebook\",\r\n \"token\": \"EAADoNzpziVMBABK9kc4wXcV9e5pIo7LO0XswkOthz5xZCUqpUZAcCC9DDu2S0NJi28p3fiwzD7zuITJZAIK1uh7TIKDAmrultfZBju1noVkbwtX4ibbeLAy8pb2TZCVS6NDfye8X3xzAKX6NqyTdFDeLpYef0NOYu3UkX5Yxv5gZDZD\"\r\n }\r\n ],\r\n \"confirmed_at\": \"2016-05-27T07:12:27+0000\",\r\n \"email\": \"\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n }\r\n ]\r\n }\r\n}\r\n\r\n\r\ncreate user using arrowdb create api\r\n\r\nhttps://api.cloud.appcelerator.com/v1/users/create.json?key=&pretty_json=true\r\n\r\nrequest :\r\nfirst_name:abc,\r\nlast_name:xyz,\r\nemail:anand2@nisostech.com,\r\npassword:12345,\r\npassword_confirmation:12345\r\n\r\n\r\nresponse :\r\n{\r\n \"meta\": {\r\n \"code\": 200,\r\n \"status\": \"ok\",\r\n \"method_name\": \"createUser\",\r\n \"session_id\": \"EerdcRGqdUVRTaqzil32uLxd8wM\"\r\n },\r\n \"response\": {\r\n \"users\": [\r\n {\r\n \"id\": \"5755314204f9959307dbff31\",\r\n \"first_name\": \"abc\",\r\n \"last_name\": \"xyz\",\r\n \"created_at\": \"2016-06-06T08:16:02+0000\",\r\n \"updated_at\": \"2016-06-06T08:16:02+0000\",\r\n \"external_accounts\": [\r\n\r\n ],\r\n \"confirmed_at\": \"2016-06-06T08:16:02+0000\",\r\n \"username\": \"anand2@nisostech.com\",\r\n \"email\": \"anand2@nisostech.com\",\r\n \"role\": \"teacher\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n }\r\n ]\r\n }\r\n}", "attachment": [], "flagged": false, "summary": "facebook login bug", "creator": { "name": "rajanand53", "key": "rajanand53", "displayName": "anand", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rajanand53", "key": "rajanand53", "displayName": "anand", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "387978", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nPlease be informed that this is not a bug, we don't match user emails. The only thing we are looking at is facebook id, if facebook login is provided. We currently don't support linking facebook users with existing users by emails. This is not a supported feature. We had a report of this previously. Resolution here is, we are not doing it at this moment. \r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-06-09T22:03:01.000+0000", "updated": "2016-06-09T22:03:01.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }