Giter Site home page Giter Site logo

chatsecure / chatsecure-push-server Goto Github PK

View Code? Open in Web Editor NEW
112.0 112.0 30.0 723 KB

An experimental design for a privacy-minded push server.

Home Page: https://chatsecure.org/blog/fixing-the-xmpp-push-problem/

License: Other

Python 99.65% Shell 0.35%

chatsecure-push-server's People

Contributors

chrisballinger avatar davidchiles avatar onlyinamerica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatsecure-push-server's Issues

https://push.chatsecure.org/api/v1/ not working

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?

XEP-0357 compatibility

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

PubSub XMPP bridge

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.

Typo on draft.

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

How remove ssl certificate from chat secure app. plz tell me what is use of ssl certificate in app.

Thanks
Mahendra

configuration for ejabbered

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

Sanitize APNS tokens

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.

pubsub ejabberd - Unknown field 'token'

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.