[ 
https://issues.apache.org/jira/browse/AIRAVATA-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197944#comment-17197944
 ] 

Marcus Christie commented on AIRAVATA-3375:
-------------------------------------------

It seems that the user did authenticate, but why it is an AnonymousUser isn't 
clear to me. I'm not sure how this could happen.

> BUG: Intermittently CILogon users are not activated because although they are 
> verified, not available in Airavata user profile
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-3375
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3375
>             Project: Airavata
>          Issue Type: Sub-task
>          Components: Airavata System
>    Affects Versions: 0.19
>         Environment: https://gateway.lrose.net/
>            Reporter: Eroma
>            Assignee: Marcus Christie
>            Priority: Major
>             Fix For: 0.20
>
>         Attachments: Screen Shot 2020-09-17 at 4.06.30 PM.png, Screen Shot 
> 2020-09-17 at 4.15.07 PM.png
>
>
> # A user used CILogon and used their institutional login to create a gateway 
> account.
>  # When tried to login, error throws [1]
>  # When gateway admin investigates, it displays [2] in Manage users.
> [1]
> Fail to process oauth2 callback: failed to authenticate user
> [2]
> User [email protected] 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:
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to