Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User does not have an associated token after registration, when Token authentication is used alongside Session authentication, and allauth EMAIL_VERIFICATION != EmailVerificationMethod.MANDATORY #604

Open
Marishka17 opened this issue Mar 26, 2024 · 0 comments

Comments

@Marishka17
Copy link

After migrating from 2.2.7 version to 5.0.2, we observed that users no longer have an associated token after registration. In the previously used version, if the REST_SESSION_LOGIN setting was not defined in the settings file, the default value (REST_SESSION_LOGIN=True) specified in the documentation was not applied for some unknown reason, and an authentication token was added to a user. In the dj-rest-auth 5.0.2 version, this bug was fixed, and now the default value is properly taken into account. However, it appears that the current implementation does not support using two authentication flows simultaneously during the registration process.

Since there is no mention in the dj-rest-auth documentation that session authentication cannot be used alongside token authentication, and considering the login implementation, this seems to be a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant