Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-3349 Bugs & Improvements on Django Pre PEARC20 (2020 Fourth quarter)
  3. AIRAVATA-3375

BUG: Intermittently CILogon users are not activated because although they are verified, not available in Airavata user profile

    XMLWordPrintableJSON

Details

    Description

      1. A user used CILogon and used their institutional login to create a gateway account.
      2. When tried to login, error throws [1]
      3. When gateway admin investigates, it displays [2] in Manage users.

      [1]

      Fail to process oauth2 callback: failed to authenticate user

      [2]

      User tttt@xx.edu has verified their login, but doesn't yet have an Airavata User Profile. Click Activate to create an Airavata User Profile for this user. This will allow the user to be assigned to groups.

      Traceback from error email:

      File "/var/www/portals/django-lrose/airavata-django-portal/django_airavata/=
      apps/auth/views.py" in callback
        132.             login(request, user)
      
      File "/var/www/portals/django-lrose/venv/lib64/python3.6/site-packages/djan=
      go/contrib/auth/__init__.py" in login
        155.     request.session[SESSION_KEY] =3D user._meta.pk.value_to_string(u=
      ser)
      
      File "/var/www/portals/django-lrose/venv/lib64/python3.6/site-packages/djan=
      go/utils/functional.py" in inner
        239.         return func(self._wrapped, *args)
      
      Exception Type: AttributeError
      Exception Value: 'AnonymousUser' object has no attribute '_meta'
      Request data not supplied
      
      

      Attachments

        Activity

          People

            marcuschristie Marcus Christie
            eroma_a Eroma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: