mozilla / fxa-auth-server

DEPRECATED - Migrated to https://github.com/mozilla/fxa
Mozilla Public License 2.0
399 stars 121 forks source link

Ensure all device push fields appear together #2936

Closed eoger closed 5 years ago

eoger commented 5 years ago

Before Firefox had support for Push payloads, it was possible for a client to register its device record with a pushCallback but no pushAuthKey/pushPublicKey. We enforce this rule on our servers by allowing pushCallback to appear alone, but making sure the 2 other fields come together: https://github.com/mozilla/fxa-auth-server/blob/30e65674e70ee42befc1ba09b6fc0fd7dde2f608/lib/routes/devices-and-sessions.js#L159

With the help of @jbuck, we have observed that:

Let's make things easy for everyone, and ensure that either all of these 3 fields are set or none of them are. It would also simplify our Rust FxA client implementation.

blocks #2547

hritvi commented 5 years ago

May I work on this?

shane-tomlinson commented 5 years ago

@hritvi it looks like @hybrid1999 has already taken up the bug!

vladikoff commented 5 years ago

This was fixed in https://github.com/mozilla/fxa-auth-server/pull/2937