-
Notifications
You must be signed in to change notification settings - Fork 334
WPB-21744: fix email verification resend for SCIM users #4916
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
base: develop
Are you sure you want to change the base?
WPB-21744: fix email verification resend for SCIM users #4916
Conversation
| bindResponse (Spar.updateScimUser owner scimToken aliceId scimUser) $ \resp -> do | ||
| resp.status `shouldMatchOneOf` [Number 200, Number 201, Number 204] | ||
|
|
||
| -- 7. Alice tries to resend verification for B (client side) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hum, tricky!
when user is upgraded to scim, old validation keys need to be invalidated or deleted. from then on, alice must not be able to change her email address herself any more.
what should work is that if user is updated using scim, and that triggers an email being sent, then admin should be able in team-management to re-send that email.
i think what you are testing is that alice can still update her email address after being put under scim management if she has initiated the change before. that should actually fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I look at it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I confused myself, I have rewrote the test so it represents the bug.
Can you check it is sync with the reported issue please?
If so, the test is passing, should I simply close the JIRA ticket or should I merge the test too?
aea6d81 to
ac16329
Compare
| let cookie = fromJust $ getCookie "zuid" resp | ||
| pure ("zuid=" <> cookie, token) | ||
|
|
||
| -- 3. Alice requests email change to B (pending state) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argh, i always get confused by this, sorry i didn't notice this before writing my earlier comments: i think the ticket is about inviting the user, not updating its email address.
6607637 to
e3325f4
Compare
https://wearezeta.atlassian.net/browse/WPB-21744
Checklist
changelog.d