Skip to content

Support for django-allauth >= 65.x #1339

@torgeirl

Description

@torgeirl

There are at least a few deprecation to handle; from changelog:

65.4.0 (2025-02-06)

  • The setting ACCOUNT_AUTHENTICATION_METHOD: str (with values "username", "username_email", "email") has been replaced by ACCOUNT_LOGIN_METHODS: set[str]. which is a set of values including "username" or "email". This change is performed in a backwards compatible manner.

Furthermore, Devilry's custom login provider has some other comparability issues:

AttributeError: type object 'SocialLogin' has no attribute 'verify_and_unstash_state'
  File "django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "allauth/socialaccount/providers/oauth2/views.py", line 105, in view
    return self.dispatch(request, *args, **kwargs)
  File "devilry/devilry_dataporten_allauth/callback.py", line 51, in dispatch
    .verify_and_unstash_state(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions