259
edits
(Created page with "Push notifications are a way for websites to send lightweight messages to users when the user is not on the site. They will be similar to push notifications for iOS or Android de...") |
|||
Line 35: | Line 35: | ||
== Security Considerations == | == Security Considerations == | ||
A mailbox URL is an opaque random string that lets a domain send messages to a <b>Device</b>. | |||
=== | === App (Server) trust === | ||
* | * Authentication: provision an API key for the app which must be sent with all requests | ||
* Authorization: match the API key to the expected mailbox domain | |||
=== | === Device trust === | ||
* | * Authentication: provision a device token the first time we need to set up a mailbox | ||
* Authorization: only display messages for mailboxes matching the token | |||
=== Spoofing === | |||
* Include origin domain when displaying messages | |||
* Enforce same-origin policy for action URLs | |||
=== Message Encryption === | |||
TODO | |||
== Prior Art == | == Prior Art == |
edits