]
Marek Posolda updated GTNPORTAL-3082:
-------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
OAuth buggy when facebook users don't have 'username'
-----------------------------------------------------
Key: GTNPORTAL-3082
URL:
https://issues.jboss.org/browse/GTNPORTAL-3082
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.6.0.Beta02
Reporter: Tomas Kyjovsky
Assignee: Marek Posolda
OAuth integration is buggy when facebook users don't have 'username'
attribute set (test users, unactivated/unverified accounts).
1. follow instructions for facebook oauth integration
https://docs.jboss.org/author/display/GTNPORTAL36/Facebook
2. additionally create 2+ test users for the created app: Settings --> Developer Roles
--> Test users
Facebook generates a "Switch to" link for each test user, like:
https://www.facebook.com/platform/test_account_login.php?user_id=10000601...
3. login to FB as test user A
4. login to gatein via fb and register new user
Expected: Newly registered gatein account should be linked to FB account of user A.
Actual: Gatein account isn't linked to FB account. After attempting to link again
manually portal indicates success:
"Social network "Facebook" connected for user "A"."
But the accounts still aren't linked.
5. logout user A from FB, logout from gatein
6. login to FB as test user B
7. login to gatein via FB
Expected: A registration dialog should be displayed with values pre-filled for user B.
Actual: Gatein automatically logs in previously created user A - even if user B is
currently logged in FB (user A is not).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: