I have to include a fb login in my web app.Now fb login returns a access_token which is send to my backend to get a new token generate by my backend.This new token is now to be send in headers of every api call I make to my backend.Is there a way I can implement this by ember-simple-auth.If Yes please some code
The response from facebook is something like this:
{
status: 'connected',
authResponse: {
accessToken: '...',
expiresIn:'...',
signedRequest:'...',
userID:'...'
}
}
Check out Ember Simple Auth's dummy app: https://github.com/simplabs/ember-simple-auth#how-do-i-use-it. It implements Facebook auth and also has an example server included.
The flow goes more or less like this: