[gatein-issues] [JBoss JIRA] (GTNPORTAL-3082) OAuth buggy when facebook users don't have 'username'

Marek Posolda (JIRA) jira-events at lists.jboss.org
Thu May 30 18:16:55 EDT 2013


     [ https://issues.jboss.org/browse/GTNPORTAL-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marek Posolda updated GTNPORTAL-3082:
-------------------------------------

           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 3.6.0.Final
       Resolution: Done


Bug could happen only with "testing" Facebook users. Normal verified users always have username and normal un-verified users (those who just registered to FB and their FB account is not yet verified with email or SMS) can't use oauth at all.

The issue with testing users is, that they don't have username, so we will fallback to use their FB id to connect their account with GateIn.

Issue will be fixed in GateIn 3.6.0.Final
                
> 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
>             Fix For: 3.6.0.Final
>
>
> 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=100006017497626&n=QXOXgAQHBJ2jf5Q
> 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: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list