Software /
code /
prosody-modules
Comparison
mod_push2/push2.markdown @ 5686:a1d22d6efb3d
mod_push2: Need to include the public key with the JWT
author | Stephen Paul Weber <singpolyma@singpolyma.net> |
---|---|
date | Wed, 20 Sep 2023 23:05:29 -0500 |
parent | 5682:4d1a3de56c3d |
comparison
equal
deleted
inserted
replaced
5685:81f1c617f4c7 | 5686:a1d22d6efb3d |
---|---|
103 <client>https://push.example.com/adlfkjadafdasf</client> | 103 <client>https://push.example.com/adlfkjadafdasf</client> |
104 <priority>normal</priority> | 104 <priority>normal</priority> |
105 <encrypted xmlns="urn:xmpp:sce:rfc8291:0"> | 105 <encrypted xmlns="urn:xmpp:sce:rfc8291:0"> |
106 <payload>Base64 encoded ciphertext</payload> | 106 <payload>Base64 encoded ciphertext</payload> |
107 </encrypted> | 107 </encrypted> |
108 <jwt>the signed JWT, if present</jwt> | 108 <jwt key="base64 encoded raw public key">the signed JWT, if present</jwt> |
109 </notification> | 109 </notification> |
110 </message> | 110 </message> |
111 ``` | 111 ``` |
112 | 112 |
113 NOTE: if the stanza exceeds the maximum size of 4096 bytes (and some implementations may wish to restrict this even more) the stanza may have some elements removed, body truncated, etc before it is delivered. Servers SHOULD ensure that at least the MAM id (if there is one) is still present after any minimization. | 113 NOTE: if the stanza exceeds the maximum size of 4096 bytes (and some implementations may wish to restrict this even more) the stanza may have some elements removed, body truncated, etc before it is delivered. Servers SHOULD ensure that at least the MAM id (if there is one) is still present after any minimization. |