-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
ids_for_business/token_for_business in facebook connect #4415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
At the moment it’s not explicitely supported, but as long as you pass a valid authData payload, you can add any additional key you want to that object. You don’t need to te-link the user with is for business nor the token I believe as the user will not be able to provide this info from the client. You can probably just save it in cloud code. If that’s not the case, you can write a custom auth adapter, that would validate your id and tokens for business in a similar way we validate the id and token. |
The token_for_business and ids_for_business cannot be used to authenticate directly. So my idea was, once the user has authenticated and provided me with an id+token, to:
Is there a good reference on extending auth adapter? |
You should be able to replace the Facebook auth adapter at startup configuring |
I've implemented in my own login function in cloud code. The place I'd ideally put this logic would be in Will be happy to share my code if it is of interest.. |
Good to hear you have a solution that fits the bill. As for modifying Closing now as it seems you’re well on your way with your solution. |
Hello,
Is there any treatment of the
ids_for_business
ortoken_for_business
currently in the facebook authentication adapter?I am trying to support two facebook apps for authenticating users in Parse, where same facebook account's users should be mapped to the same _User objects in Parse (Facebook allocates new ids for each facebook application).
Proper mapping can be achieved using Business Manager API, Is this currently supported?
Please see explanation and comment here https://stackoverflow.com/questions/45280781/parse-server-facebook-login-link-users-with-business-mapping-api
Thanks,
Ron
The text was updated successfully, but these errors were encountered: