An issue arises when attempting to log in through accounts that lack the edupersonEntitlement attribute, such as those associated with Github and Google.
I attempted to authenticate, but, the execution of the synchronize_vos
function impeded my progress, resulting in the occurrence of the below error message:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django_helmholtz_aai/views.py", line 237, in get
self.synchronize_vos()
File "/usr/local/lib/python3.8/site-packages/django_helmholtz_aai/views.py", line 459, in synchronize_vos
vos = self.userinfo["eduperson_entitlement"]
Exception Type: KeyError at /api/helmholtz-aai/auth/
Exception Value: 'eduperson_entitlement'
It is worth noting that no VO was defined in the HELMHOLTZ_ALLOWED_VOS
list.