ronzeidman / ng2-ui-auth

an angular2 repository for authentication based on angular1's satellizer
MIT License
206 stars 64 forks source link

Facebook auth with Socialite #150

Open gultyayev opened 6 years ago

gultyayev commented 6 years ago

Please explain to me how do I sing in using Facebook and Laravel Socialite. Socialite expects code to be provided to callback. Where do I get it?

Also I've noticed that ng2-ui-auth tries to access some page on my SPA /auth/facebook. I haven't specified it

ronzeidman commented 6 years ago

The code is sent in the json body of /auth/facebook under oauthData ({ ..., "oauthData": { "code": ,,, } })

gultyayev commented 6 years ago

@ronzeidman How do I send code to my backend API so that I can authorize user using Socialite? I use subdomain for the API. Actually the problem is(at least I see it so) is that I cannot redirect my token to backend. There is no redirectUrl