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

OAuth uncaught exception on banned user

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.2.5
    • None
    • Authentication
    • None

    Description

      When a user is banned and tries to login through an OAuth provider (eg. Google), he is shown an uncaught exception, rather than the ban message.

       

      Fatal error:  Uncaught 
      OAuth\Common\Http\Exception\TokenResponseException: Failed to request 
      resource. HTTP Code: HTTP/1.1 400 Bad Request in 
      C:\xampp\htdocs\qi\boards\bna\vendor\lusitanian\oauth\src\OAuth\Common\Http\Client\StreamClient.php:68
      Stack trace:
      #0 
      C:\xampp\htdocs\qi\boards\bna\vendor\lusitanian\oauth\src\OAuth\OAuth2\Service\AbstractService.php(124):
       
      OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri),
       'code=4%2FIAEBLQ...', Array)
      #1 
      C:\xampp\htdocs\qi\boards\bna\phpbb\auth\provider\oauth\service\google.php(80):
       
      OAuth\OAuth2\Service\AbstractService->requestAccessToken('4/IAEBLQgVWjddi...')
      #2 
      C:\xampp\htdocs\qi\boards\bna\phpbb\auth\provider\oauth\oauth.php(217): 
      phpbb\auth\provider\oauth\service\google->perform_auth_login()
      #3 C:\xampp\htdocs\qi\boards\bna\phpbb\auth\auth.php(949): 
      phpbb\auth\provider\oauth\oauth->login('', '')
      #4 C:\xampp\htdocs\qi\boards\bna\includes\functions.php(2334): 
      phpbb\auth\auth->login('', '', false, 1, 0)
      #5 C:\xampp\htdocs\qi\boards\bna\phpbb\ in C:\xampp\htdocs\qi\boards\bna\vendor\lusitanian\oauth\src\OAuth\Common\Http\Client\StreamClient.php on line 68
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mrgoldy mrgoldy [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: