chatsecure / chatsecure-push-server Goto Github PK
View Code? Open in Web Editor NEWAn experimental design for a privacy-minded push server.
Home Page: https://chatsecure.org/blog/fixing-the-xmpp-push-problem/
License: Other
An experimental design for a privacy-minded push server.
Home Page: https://chatsecure.org/blog/fixing-the-xmpp-push-problem/
License: Other
When trying to connect I get:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.
and my ChatSecure Clients cannot subsribe to push notifications.
Is it possible to self-host the push-gateway or are ChatSecure and THIS gateway coupled together?
Hi Chris,
based on a quick look at version 3.1 of your specification I think it can be compatible with brand new XEP-0357.
I think the 'white_list_token' in your spec is equivalent to the 'secret' and the 'api_endpoint' can be mapped to the name of a node allocated on the app server's pubusb service.
I'm not sure about the app_bundle_id and what the XMPP server should do with it.
So when Alice registers at the ChatSecure push server, it allocates a 'publish-only' node on its pubsub service and sends the node name and a white_list_token back to Alice.
Let's assume Alice has received node name "ABC" and white_list_token "DEF". Then she would enable push at her XMPP server like this:
<iq from='[email protected]/rabbithole' type='set' id='x43'>
<enable xmlns='urn:xmpp:push:0' jid='pubsub.chatsecure.org' node='ABC'>
<x xmlns='jabber:x:data'>
<field var='FORM_TYPE'><value>http://jabber.org/protocol/pubsub#publish-options</value></field>
<field var='secret'><value>DEF<value></field>
</x>
</enable>
</iq>
If Alice's XMPP server wants to send her a push notification it publishes a notification on ChatSecure's pubsub service:
<iq type='set'
from='[email protected]'
to='pubsub.chatsecure.org'
id='n12'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='ABC'>
<item>
<notification xmlns='urn:xmpp:push:0'>
<x xmlns='jabber:x:data'>
<field var='FORM_TYPE'><value>urn:xmpp:push:summary</value></field>
<field var='message-count'><value>1</value></field>
</x>
</notification>
</item>
</publish>
<publish-options>
<x xmlns='jabber:x:data'>
<field var='FORM_TYPE'><value>http://jabber.org/protocol/pubsub#publish-options</value></field>
<field var='secret'><value>DEF<value></field>
</x>
</publish-options>
</pubsub>
</iq>
This means (as you already stated) an XMPP server with pubsub needs to be running on the ChatSecure push server.
One problem currently is that XMPP servers don't implement publish-options [1], but maybe I can fix that for ejabberd.
Christian
[1] http://www.xmpp.org/extensions/xep-0060.html#publisher-publish-options
In order to bridge with servers supporting XEP-0357 we need to implement a basic XEP-0060 pubsub node that can translate pushes to our REST API.
I'd like to avoid any hard dependencies on specific XMPP servers, and make it a standalone component that implements the bare minimum of the pubsub spec required to be compatible with servers supporting XEP-0357.
The image ChatSecure_Push-Level Google+Facebook+XMPP.png contains a typo.
Other than that, I wish the best for this draft and the future of XMPP.
How remove ssl certificate from chat secure app. plz tell me what is use of ssl certificate in app.
Thanks
Mahendra
I have configured Chat Push server but What configuration need to be configure on ejabberd server. How ejabberd will communicate with push server for notifications. Please share some documents
For some strange and seemingly impossible configuration the APNS tokens are being sent with spaces throughout the hex. Since I can't figure out how the client would ever do that, we should also remove the spaces on the server.
Hello,
anyone can help with ejabberd pubsub problem - unknow field "token". We deployed chatsecure push server on heroku using our pubsub server.
Any idea ?
Thank you in advance.
00:27:49.607 [info] pubsub.example.com rejected notification for [email protected] (C1A9--4***-BD-08F4**) temporarily: Unknown field 'token' of type 'http://jabber.org/protocol/pubsub#publish-options' (resource-constraint)
00:27:54.599 [info] (tls|<0.540.0>) Received XML on stream = <<"<r xmlns="urn:xmpp:sm:3"/>">>
00:27:54.599 [info] (tls|<0.540.0>) Send XML on stream = <<"">>
00:27:59.599 [debug] route:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.