Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Łukasz Lewczyński
Łukasz Lewczyński(Deactivated)Reporter
Nikodem Graczewski
Nikodem GraczewskiLabels
Story Points
3
Original estimate
2d
Time tracking
Components
Sprint
Add sprint
Fix versions
Priority
Time Assistant
Time Assistant
Created June 12, 2018 at 11:24 AM
Updated November 29, 2020 at 1:40 PM
Resolved June 29, 2018 at 11:49 AM
As part of https://openlmis.atlassian.net/browse/OLMIS-4833#icft=OLMIS-4833 we added email verification feature to the auth service. This ticket is about moving this feature to the notification service because we would keep contract details in that service.
As part of the ticket we should change endpoints:
The following endpoint should be responsible for retrieving pending user verifications. The endpoint should not change the data in the service. It should be read-only
GET verifyEmail?userId=<<id>> => GET userContactDetails/{userId}/verifications
The next endpoint should be responsible for sending new verification token to the user. The old token should be set as invalid.
POST verifyEmail?userId=<<id>> => POST userContactDetails/{userId}/verifications
The last endpoint should be used only in the verification message (for now email) that is sent to the user. The endpoint should verify token and update user's contact details.
GET verifyEmail/{token} => GET userContactDetails/{userId}/verifications/{token}
Acceptance criteria
moved functionality to the notification service
update UI to send a request about resend verification email to the correct service -> moved https://openlmis.atlassian.net/browse/OLMIS-4965#icft=OLMIS-4965
functionality should not be changed
if user is created and email is set, the user should get verification email temporary disabled -> https://openlmis.atlassian.net/browse/OLMIS-4983#icft=OLMIS-4983
the user has 12 hours to verified an email, after that time he has to create a new token
each time when user change email a new verification email should be sent
before user verifies a new email address, the notification service should use the old one