Skip to content
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

Connection without password #541

Closed
Clowning opened this Issue Jul 8, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@Clowning
Copy link

Clowning commented Jul 8, 2017

Hey,

Currently, i'm coding a mobile app with a facebook login, everything is handle on my application, but i don't know what i can do after get user facebook information to register it into my feathers API.

I just want to send personal information with the token and that Feathers return me a JWT to allow users to interact with the API.

But I can't found anythings about that, do you have any idea ? It's my first time with a facebook login with a mobile application so i'm lost haha!

Thanks (And sorry for my english!)

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jul 9, 2017

@Clowning, take a look at the feathers-authentication-oauth2 plugin and use the passport-facebook-token strategy from npm. I think you might even be able to copy over the setup from a new feathers-cli app with Facebook Auth and just swap out the strategy.

Also, maybe @ekryski or @corymsmith knows of an example application.

@Clowning

This comment has been minimized.

Copy link
Author

Clowning commented Jul 9, 2017

Hey @marshallswain, thanks a lot, i've tried to install this passport, everything is installed but i've this error : "info: error: authentication - Method: create: Failed to fetch user profile".

I've set my App ID and Secret Key and pass a valid Facebook Token :/

Do you have any idea about that?

@Clowning

This comment has been minimized.

Copy link
Author

Clowning commented Jul 9, 2017

Ok my bad ! It's working! Thanks a lot :-) !

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jul 9, 2017

I'm glad you got it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.