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: add invite expired catch for saml provisioning #25118

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zlwaterfield
Copy link
Contributor

@zlwaterfield zlwaterfield commented Sep 20, 2024

Problem

We added some new functionality around invites and saml provisioning here: #23930 and it added an edge where if a user has an existing invite that is expired and they try to login via SAML which tries to auto provision them an account then it will error out.

Customer report: https://posthog.slack.com/archives/C06QZ97A6KH/p1726833550210629

Changes

This PR adds a new invite expired exception and checks for that in the exception handling which will allow the user to proceed as normal and ignore the expired invite.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

TODO: add tests for the edgecase

@zlwaterfield zlwaterfield self-assigned this Sep 20, 2024
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.

1 participant