-
-
Notifications
You must be signed in to change notification settings - Fork 672
Extend UserAPI to handle threepid validation sessions #1970
Extend UserAPI to handle threepid validation sessions #1970
Conversation
…eepid-sessions-in-userapi
I made a progress with CI checks. I struggle however to understand why |
|
…eepid-sessions-in-userapi
…as are separate. Generate session id in database
Nice, thanks! I think this PR is ready to be reviewed - I want to route extended User API in separate PR. Can you please refer to |
|
Sytest is passing 🎉 I have failure in |
I was trying to merge the latest |
I have played with it today, please check now, should be fixed. Sorry for inconvenience. |
UserInternalAPI
is extended to handle validation sessions.testMailer
.Mailer
interface.SmtpMailer
implementation ofMailer
is provided.UserAPI
config is extended to configureSmtpMailer
and email templates path.ThreepidSessionType
is defined. Three different templates are defined -account_password
,account_threepid
,register
for respective/requestToken
endpointsUncertainties
sqlite3
andpostgres
Database
implementations share statements but diverge on schema definition. Is that ok?client_secret
andemail
pair withsent_attempt
bumped (bothsynapse
anddendrite
generate new tokens). I did not see any rationale behind generating new one. Proposed approach requires one SQL table instead of two.github.com/matryer/is
was used as extension to go testing framework. I found it minimal yet powerful to work with. Can we accept it as a test dependency?SmtpMailer
manually by callingdocker run --rm -p 25:25 -v $(pwd)/emails:/var/lib/mock-smtp -d flaviovs/mock-smtp
inuserapi/mail
and thengo test -tags=test_mail
and inspecting output manually. Can we automate these tests in Buildkite?What's next
CreateSession
Pull Request Checklist
sytest-whitelist
as specified in docs/sytest.mdSigned-off-by:
Piotr Kozimor <[email protected]>