Skip to content

Every facebook login creates a new user #934

Closed
@rafapetter

Description

@rafapetter

Issue
Every time I try to login through facebook a new user is created on mongo. I've also noticed there's no column _auth_data_facebook saved on these users.

Prerequisites

  • I've migrated to AWS Elastic Beanstalk(64bit Amazon Linux 2015.09 v2.0.7, running Node.js 4.2.3) and MongoLab
  • I'm running the 2.1.4 of Parse Server.
  • I'm testing on Android SDK

Steps to reproduce on Android

  • I've changed the endpoint from parse API to my parse server
  • Installed the app
  • Tried to facebook login
  • After successful facebook authentication a new user is created on mongo with no auth data.

Log from Verbose
Here we can see that authData is sent through POST

POST /parse/users { host: 'parseserver-xxxx-env.elasticbeanstalk.com',
  'x-real-ip': 'xxxxx',
  'x-forwarded-for': xxxxx',
  'content-length': '326',
  'accept-encoding': 'gzip',
  'content-type': 'application/json',
  'user-agent': 'Parse Android SDK 1.13.0 (com.xxx.xxxx/7) API Level 21',
  'x-newrelic-id': 'xxxxx==',
  'x-parse-app-build-version': '7',
  'x-parse-app-display-version': 'xxxx',
  'x-parse-application-id': 'xxx',
  'x-parse-client-key': 'xxx',
  'x-parse-client-version': 'a1.13.0',
  'x-parse-installation-id': 'xxxxx',
  'x-parse-os-version': '5.0.2',
  'x-forwarded-port': '80',
  'x-forwarded-proto': 'http' } {
  "authData": {
    "facebook": {
      "access_token": "xxxxxxxxxx",
      "expiration_date": "2016-05-08T16:31:45.008Z",
      "id": "xxxxxxxxx"
    }
  }
}

Possible Similar Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions