← Back to team overview

openerp-india team mailing list archive

[Bug 1118151] Re: [7.0] Google authentication failing

 

Hi,

There was indeed an issue with the way our OAuth modules expected the
User ID from the OAuth provided to be numeric all the time, while
Google's IDs are alphanumerical.

This is fixed in the addons 7.0 branch as of revision 8708 (revision-id:
odo@xxxxxxxxxxx-20130215105820-ua7pwdrf78dkdyk8)

Thanks for reporting!

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: Incomplete => Fix Released

** Changed in: openobject-addons
    Milestone: None => 7.0

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1118151

Title:
  [7.0] Google authentication failing

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  I am trying to get the google-based authentication working. When
  signing in with google credentials I keep getting an "Authentication
  error" message.

  Taking a look at the log, I have found the following error:

  2013-02-06 21:16:33,653 10586 ERROR ? openerp.addons.auth_oauth.controllers.main: OAuth2: %d format: a number is required, not str
  Traceback (most recent call last):
    File "/opt/openerp-codeback/server/openerp/addons/auth_oauth/controllers/main.py", line 63, in signin
      credentials = u.auth_oauth(cr, SUPERUSER_ID, provider, kw, context=context)
    File "/opt/openerp-codeback/server/openerp/addons/auth_oauth/res_users.py", line 79, in auth_oauth
      login = self._auth_oauth_signin(cr, uid, provider, validation, params, context=context)
    File "/opt/openerp-codeback/server/openerp/addons/auth_oauth_signup/res_users.py", line 42, in _auth_oauth_signin
      email = validation.get('email', 'provider_%d_user_%d' % (provider, oauth_uid))
  TypeError: %d format: a number is required, not str

  I am working on ubuntu 12.10 and OpenERP version "7.0-20130108-001542"

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1118151/+subscriptions


References