This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
forked from kriswallsmith/FacebookBundle
-
Notifications
You must be signed in to change notification settings - Fork 140
Added integration of existing account. #149
Open
daFish
wants to merge
6
commits into
FriendsOfSymfony:master
Choose a base branch
from
daFish:doc/integration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7d61fa4
Fixed path to facebook sdk.
daFish 2ce39a0
Updated yml example.
daFish d09917c
Fixed var typo in README
MattKetmo c1ddcc2
Set the file parameter optional
MattKetmo 8612e94
Merge remote-tracking branch 'upstream/master'
daFish a369a1d
Added integration of existing account.
daFish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but since one can create a facebook account with any email address, wouldn't this allow any one to login to any account ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would indeed be a security issue.
One solution could be a notice to the user to login with his credentials and merge the Facebook information with the existing account. That way we are sure the user is really in possession of the account.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct if I'm wrong but I think my implementation is valuable security wise.
If you create an Facebook account you need to verify this account before you can use it. So the Facebook account is sufficiently authenticated. If a user has access to the email address then the account itself is already compromised.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$fbdata['verified'] is true if facebook has verified the account.
Not sure if this means the email address they've given is valid or just if one of the emails on the account has been verified / user has verified a mobile number.
I think redirecting to another login form is probably the way to go.