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

fix saml login errors after rebase on a+ #95

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

goapunk
Copy link
Contributor

@goapunk goapunk commented Oct 21, 2024

Tasks

  • PR name contains story or task reference
  • Documentation (docs and inline)
  • Tests (including n+1 and django_assert_num_queries where applicable)
  • Changelog

@@ -15,21 +13,19 @@ def apply_custom_overwrites():


def customize_session(self, user, session_info):
user_obj = User.objects.get(email=user)
if not EmailAddress.objects.filter(user=user_obj, email=user).exists():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passing email=user doesn't work anymore, I'm not entirely sure why

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because of the latest allauth, we changed I think the mandatory fields. did you try email=user.email?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is what I did in this PR

@goapunk goapunk requested a review from m4ra October 21, 2024 16:23
@goapunk goapunk force-pushed the jd-2024-10-fix-saml-sign-in branch from 7dac925 to 70bf03e Compare October 22, 2024 07:53
],
},
"required_attributes": ["mail"],
"allow_unsolicited": False,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only thing which changed here is adding this line, the rest was auto-formatting

@m4ra m4ra merged commit b5feaaf into main Oct 22, 2024
3 checks passed
@m4ra m4ra deleted the jd-2024-10-fix-saml-sign-in branch October 22, 2024 12:29
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

Successfully merging this pull request may close these issues.

2 participants