Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16104

oAuth not working when using direct link to viewtopic.php

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Resolved
    • Affects Version/s: 3.2.7
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
      None

      Description

      Hi,

      when opening direct link to viewtopic.php and user is not logged in login window is displayed (restricted forum)

      e.g:

      https://test.pienczykowski.net:4443/viewtopic.php?f=2&t=1

       

      I'm using Facebook login button to login. I'm correctly redirected to facebook:

      https://www.facebook.com/dialog/oauth?type=web_server&client_id=377440876437155&redirect_uri=https%3A%2F%2Ftest.pienczykowski.net%3A4443%2Fviewtopic.php%3Fmode%3Dlogin%26login%3Dexternal%26oauth_service%3Dfacebook&response_type=code&scope=&state=6b865be269e1cf7737c77c0a7e5fae0f

       

      and authorized properly and redirected back to

      https://test.pienczykowski.net:4443/viewtopic.php?mode=login&login=external&oauth_service=facebook&code=AQAK0krsI_nITTh37e9npin77d9ld5nfnWi13tQD-oOgLvOsaqrvQwlmeNV73KiApi-6E9WTETuqy3cTMV2IJFg2FDFrKCJ3kBkWM_zZrc-1YnNm_NlrOWYJdAqeGCdoSY6U-JFJYCZtToR1nrLN8I3qy6dK678mbMF0XXPk4BehAgkRyn_R_dj0kNor0LbxQJAJovimxL8b0xQ3yaocbFVu9OrQJXaon4wmSCxOz5Nv6Z6RuZJzmXPVAVTRj2YOInj89zuQ2pTieuFDngiKz5PR9ER0MdNIib4W4roU-mSTNLM_E8DNH216Sp8JZIyff79hJhmpTT8APzDq_llqa6OD&state=6b865be269e1cf7737c77c0a7e5fae0f

       

      I'm receiving 404 error:

      Information

      The requested topic does not exist.

       

      instead displaying the topic.

       

      When using login/password (DB auth) it's working correctly (topic is displayed). When login via facebook from home page - it's also correct - main page is displayed:

      https://test.pienczykowski.net:4443/ucp.php?mode=login

      https://www.facebook.com/dialog/oauth?type=web_server&client_id=377440876437155&redirect_uri=https%3A%2F%2Ftest.pienczykowski.net%3A4443%2Fucp.php%3Fmode%3Dlogin%26login%3Dexternal%26oauth_service%3Dfacebook&response_type=code&scope=&state=be0d28db67ce6eaf92f3db6a535ed3cd

      https://test.pienczykowski.net:4443/ucp.php?mode=login&login=external&oauth_service=facebook&code=AQBNOoQAi0SFOWtBMbg6fuZGF6RU4nAuk6Aw2wjDHwJiHIjz1yVKrjH8MtPscCIkbZBeff2NVQgsAB6AAtoak9wlqgJq1gFflSgNhjGythHc-6pmgy-yP7YqRoZlRVxIopf1zEbuEqbavnBA5IRZTu9NFnzOfN2if7aEPRRrIAvg7zDHiAKSKScdAmptgBZF91N_w8QUEMly_DgUSd8q58syMdItx6hYKdUkJ5v5Y6YxExSfjCv8u8tx4mN7gfMDzyAp5Roby9vXeyXDa2b5J-AbGM_0R0mJWCFxPDHcSzTiMbrMC2HU6OkFlQifiRgAjf_6zZURevL__0WNFiT5N0JL&state=be0d28db67ce6eaf92f3db6a535ed3cd

      https://test.pienczykowski.net:4443/index.php?sid=fcfd542ebf10f75c61045c516207758b

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                SirAd SirAd
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: