What's happening:
I have a server server where I have the information of each individual user. Authentication of Twitter and Facebook is a common way to allow a user to access one of the applications at the moment, so it was decided that he / she would have to use these platforms + the classic way (email address + password)
Question:
After the user has logged in using Facebook, and I get a callback saying that it was successful (for example, with the SDK):
- (void)sessionStateChanged:(FBSession *)session state:(FBSessionState) state error:(NSError *)error { switch (state) { case FBSessionStateOpen: if (!error) { // We have a valid session NSLog(@"User session found"); } break; case FBSessionStateClosed: case FBSessionStateClosedLoginFailed: [FBSession.activeSession closeAndClearTokenInformation]; break; default: break; }
How can I transfer credentials to a server so that we can access our own endpoints?
How does the backend know that this particular user creating the request is actually authenticated (or registered) in your backend?
What role do we create on Facebook? ( https://developers.facebook.com/apps/ ) in this?
Peres
source share