Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-441

Reusing a grant code when logging in to the admin interface with google oauth should return a problem detail

XMLWordPrintable

      Currently it throws an exception:

      {"host": "ip-10-225-130-8", "name": "root", "level": "ERROR", "timestamp": "2017-08-02T17:55:50.082913", "app": "simplified", "traceback": "Traceback (most recent call last):\n File \"/var/lib/app/env/local/lib/python2.7/site-packages/flask/app.py\", line 1639, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/var/lib/app/env/local/lib/python2.7/site-packages/flask/app.py\", line 1625, in dispatch_request\n return self.view_functions[rule.endpoint|**req.view_args]\n File \"./core/app_server.py\", line 171, in decorated\n v = f(_args, *_kwargs)\n File \"./api/admin/routes.py\", line 90, in google_auth_callback\n return app.manager.admin_sign_in_controller.redirect_after_google_sign_in()\n File \"./api/admin/controller.py\", line 210, in redirect_after_google_sign_in\n admin_details, redirect_url = self.auth.callback(flask.request.args)\n File \"./api/admin/google_oauth_admin_authentication_provider.py\", line 52, in callback\n credentials = self.client.step2_exchange(auth_code)\n File \"/var/lib/app/env/local/lib/python2.7/site-packages/oauth2client/_helpers.py\", line 133, in positional_wrapper\n return wrapped(_args, *_kwargs)\n File \"/var/lib/app/env/local/lib/python2.7/site-packages/oauth2client/client.py\", line 2080, in step2_exchange\n raise FlowExchangeError(error_msg)\nFlowExchangeError: invalid_grantCode was already redeemed.", "message": "Exception in web app: invalid_grantCode was already redeemed.", "filename": "app_server.py"}

      Issue is synchronized with a GitHub issue
      Repository Name: circulation
      Issue Number: 617

            leonardrichardson Leonard Richardson [X] (Inactive)
            github Github Sync
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: