Ember cli simple auth login with facebook using torii authenticate against server using oauth2

302 Views Asked by At

How do i allow the user to login with facebook and take that facebook authentication code and pass it to my server using simple auth oauth2?

I obviously want to validate whether or not the user has permissions to make request to my server.

I have been looking all over and am not able to find anything that would point me in the right direction.

I see examples that tell me to do this this.get('session').authenticate('simple-auth-authenticator:torii', 'facebook-oauth2'); but what do i do with this afterwords? and how do i use this to check against my own server using oauth2?

A full example allowing multiple ways to login with server authentication that returns user info to be used later on in the application(user_id, firstname, lastname, etc...) would be most appreciated!!!

0

There are 0 best solutions below