Subject: Firebase Problems, Please help!
I'm trying to use agsXMPP to connect to google's firebase service, using the following client connection definition:
Logs below.
I noticed the Access key being sent does not match the key I'm providing, not sure if its being encoded somewhere along the way. and I'm concerned that agxmpp doesnt have the OldStyleSsl option that MatriX has in all its examples. Anyone have experience getting this to work correctly? I can connect just fine with the credentials via a node-xcs app.
- xmpp.Username = Cfg.Id + "@gcm.googleapis.com";
- xmpp.Password = Cfg.AccessKey;
- xmpp.KeepAlive = true;
- xmpp.UseSSL = true;
- xmpp.UseStartTLS = false;
- xmpp.AutoRoster = false;
- xmpp.AutoPresence = false;
Logs below.
- 2017-02-02 21:47:31,665 INFO r.Service.GcmService: Connection State Changed To: Connecting
- 2017-02-02 21:47:31,935 INFO r.Service.GcmService: Connection State Changed To: Connected
- 2017-02-02 21:47:31,936 INFO r.Service.GcmService: SND: <stream:stream to='fcm-xmpp.googleapis.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
- 2017-02-02 21:47:32,007 INFO r.Service.GcmService: REC: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" id="(REMOVED)" from="fcm-xmpp.googleapis.com" >
- 2017-02-02 21:47:32,014 INFO r.Service.GcmService: REC: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
- 2017-02-02 21:47:32,020 INFO r.Service.GcmService: SND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">(REMOVED)</auth>
- 2017-02-02 21:47:32,054 INFO r.Service.GcmService: REC: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized /></failure>
- 2017-02-02 21:47:32,055 INFO r.Service.GcmService: REC: </stream:stream>
- 2017-02-02 21:47:32,056 INFO r.Service.GcmService: Connection State Changed To: Disconnected
I noticed the Access key being sent does not match the key I'm providing, not sure if its being encoded somewhere along the way. and I'm concerned that agxmpp doesnt have the OldStyleSsl option that MatriX has in all its examples. Anyone have experience getting this to work correctly? I can connect just fine with the credentials via a node-xcs app.