You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for similar issues in this repository.
Steps to reproduce the behavior
Go to '...'
Scroll down to '...'
Click on '...'
See error
Expected behavior
The SAML-Authentication should be successful and the user should be logged in
Screenshots
No response
Exception traceback
[2022-01-28 09:44:06,134: ERROR/367] Internal Server Error: /accounts/complete/saml/
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/decorators/cache.py", line 56, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/weblate/accounts/views.py", line 1256, in social_complete
return complete(request, backend)
File "/usr/local/lib/python3.10/site-packages/django/views/decorators/cache.py", line 56, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/social_django/utils.py", line 46, in wrapper
return func(request, backend, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/social_django/views.py", line 31, in complete
return do_complete(request.backend, _do_login, user=request.user,
File "/usr/local/lib/python3.10/site-packages/social_core/actions.py", line 45, in do_complete
user = backend.complete(user=user, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/social_core/backends/base.py", line 40, in complete
returnself.auth_complete(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/social_core/backends/saml.py", line 333, in auth_complete
returnself.strategy.authenticate(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/social_django/strategy.py", line 105, in authenticate
return authenticate(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/decorators/debug.py", line 42, in sensitive_variables_wrapper
return func(*func_args, **func_kwargs)
File "/usr/local/lib/python3.10/site-packages/django/contrib/auth/__init__.py", line 76, in authenticate
user = backend.authenticate(request, **credentials)
File "/usr/local/lib/python3.10/site-packages/social_core/backends/base.py", line 80, in authenticate
returnself.pipeline(pipeline, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/social_core/backends/base.py", line 83, in pipeline
out =self.run_pipeline(pipeline, pipeline_index, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/social_core/backends/base.py", line 113, in run_pipeline
result = func(*args, **out) or {}
File "/usr/local/lib/python3.10/site-packages/weblate/accounts/pipeline.py", line 413, in user_full_name
full_name = details.get("fullname", "").strip()
AttributeError: 'NoneType' object has no attribute 'strip'
System check identified some issues:
INFOS:
?: (weblate.I021) Error collection is not set up, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-4.10.1/admin/install.html#collecting-errors
?: (weblate.I028) Backups are not configured, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-4.10.1/admin/backup.html
System check identified 2 issues (1 silenced).
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the issue
I've configured weblate to use SAML-Authentication with google as IDP. The mapping is configured in Google like this:
The Full Name is not available as Field on Google's side.
When I debug the details-parameter within the function accounts/pipeline.py::user_full_name, it look's like this:
Since fullname is set, but not a string, this call fails:
I already tried
Steps to reproduce the behavior
Expected behavior
The SAML-Authentication should be successful and the user should be logged in
Screenshots
No response
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
Weblate deploy checks
Additional context
No response
The text was updated successfully, but these errors were encountered: