Page MenuHomePhabricator

[services][identity] helper function to finish PAKE login
ClosedPublic

Authored by varun on Jun 24 2022, 6:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 2:08 AM
Unknown Object (File)
Wed, Nov 13, 2:08 AM
Unknown Object (File)
Wed, Nov 13, 2:08 AM
Unknown Object (File)
Wed, Nov 13, 2:08 AM
Unknown Object (File)
Wed, Nov 13, 2:05 AM
Unknown Object (File)
Oct 23 2024, 6:44 AM
Unknown Object (File)
Oct 22 2024, 2:40 AM
Unknown Object (File)
Oct 21 2024, 1:47 AM

Details

Summary

helper function completes PAKE login and returns an access token or an error depending on the outcome

depends on D4350

Test Plan

tested with method that calls this helper

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Jun 24 2022, 6:39 AM
tomek added inline comments.
services/identity/src/service.rs
391 ↗(On Diff #13817)

This is login or register, so it should be reflected in this message

391 ↗(On Diff #13817)

Is it a good idea to ignore an error from server_login?

This revision is now accepted and ready to land.Jun 28 2022, 6:44 AM
services/identity/src/service.rs
391 ↗(On Diff #13817)

This is login or register, so it should be reflected in this message

I'll add an error log that reflects this

Is it a good idea to ignore an error from server_login?

We don't ignore the error, the question mark operator means we return an error immediately if we encounter one. We should definitely log the error, though -- which I will do before landing this