Unknown opened 4 years ago
|
|
Are there any errors? Could you get the logs from the Pidgin? From the TIgase XMPP Server perspective - are there any errors/exceptions in the logs? Is the server listening on bosh port (5280)? |
|
On my windows 10 machine I have setup Tigase Server 8.0.0 with MongoDB 4.2.8 and JDK 11.0.7. Since its on localhost I have turned off dns-webservice
I can see in Resource monitor and via netstat that the port is listning
on Pidgin (2.14.1) in the Advanced tab I have just changed the port for existing account which I had tested earlier on 5222 Connection Security = Require Encryption Port = 5280 I have kept the Connect Server and BOSH URL field empty On Basic Tab I have username, Domain, Protocol = XMPP and password. I have kept resource empty on Proxy tab I have Proxy Type = Use Global Proxy Settings In Pidgin on changing status I am getting
|
|
As you see in the error received in the server:
So, you are not connecting to BOSH.
In order to use bosh, you have to specify the BOSH URL, the exact endpoint is not all that important but in the BOSH URL field you should specify: |
|
I am now getting error that "You require encryption, but it is not available on this server." while it worked for 5222. Giving the Pidgin log, Tigase log and Config file In Pidgin do I need to change for account setup in Advanced Tab (below). Or anything in my config.tdsl (see below) Connection Security = "Require encryption", "Use Encryption If available", "Use Old style SSL" Tick Check Box "Allow Plaintext auth over unencrypted streams" Pidgin Log
Tigase log
config.tdsl
|
|
Encryption for regular socket (5222) and BOSH are slightly different. And by default BOSH doesn't use encryption (HTTP). Usual setup involves putting Tigase's BOSH endpoint behind dedicated connection manager/load balancer, that handles termination of encrypted connections and forwards plain HTTP requests to the Tigase. However, you can enable HTTPS BOSH - either on default port or enable dedicated HTTPS port:
Giving the Pidgin log, Tigase log and Config file In Pidgin do I need to change for account setup in Advanced Tab (below). Or anything in my config.tdsl (see below) Connection Security = "Require encryption", "Use Encryption If available", "Use Old style SSL" Tick Check Box "Allow Plaintext auth over unencrypted streams" |
|
But I am able to connect from Tigase web client with http-bind url in the advanced field while login, with the same setup. Does Tigase web client not use connection manager/ load balancer |
|
By default Tigase web client uses However - what's your objective? Why do you want to use BOSH? What do you try to achieve? |
|
I am working on a Proof of Concept to integrate chat messaging to existing product. Requirement is to use the existing https security infrastructure (Firewall, proxy, WAF, API Gateway etc). I have identified XMPP over BOSH on Tigase fits the requirement (no plain XMPP, websocket) So currently doing this Black Box PoC on Windows 10 with Pidgin to validate functionality (features, security, performance) on XMPP over BOSH and then identify libraries/ apps fitting our requirement Issue I am facing
|
|
Out of curiosity - why not WebSocket?
That's true, but in general BOSH could be considered as somewhat "legacy" solution and it's recommendable to use WebSocket. Besides, Tigase follows specification for BOSH: XEP-0124: Bidirectional-streams Over Synchronous HTTP (BOSH) and XEP-0206: XMPP Over BOSH. Of course we would gladly improve our documentation with missing bits but we would have to know specifics about what is missing exactly.
For Android (native app) you can use our JaXMPP library. For iOS we have Tigase Swift library, but it's written in Swift and doesn't support BOSH (only socket connection)
You can use any of the available JavaScript libraries: xmpp.js or Strophe.js being the most popular. Alternatively, you can try our own library halcyon written in Kotlin with being multiplatform in mind (thus, possibility to use it from browser as well) |
|
Can I use Apache HTTP Sever on my localhost, that can handle termination of encrypted connections and forwards plain HTTP requests to the Tigase. If yes can you suggest the complete correct apache httpd.conf setting for BOSH and Websocket with http-bind and when using "dns-webservice" I tried enabling the below modules and the lines. But I am still facing issues.
|
|
It can be either apache or nginx. I don't have configuration handy but it's rather strightforward. Take a look at https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension#configuring-apache-to-proxy-connections and the last example:
|
|
I tried setting up Apache on my windows 10 desktop for http and https both with below settings but still getting error. Is there any error in my settings. in config.tdsl
Pidgin BOSH http url
Pidgin BOSH https url
|
|
Please try pointing Pidgin directly to https://127.0.0.1:5281/http-bind/ - it should work directly. Alternatively With Apache you could Proxy port 443 with ProxyPass to http in Tigase, i.e.:
|
|
Using Pidgin directly on windows 10 to https://127.0.0.1:5281/http-bind/ - its giving below authentication error. Sharing screenshot of pidgin setup. Pidgin and Tigase log For proxy port 443 so you are suggesting to use without certificate?
Pidgin Log
|
|
Which pidgin versin do you use? It's definitely doing something odd - first it asks for
Then in performs SASL auth correctly after receiving the futures (to which it receives
And afterwards it tries to authenticate with
to which it receives "not authorized" error:
Please try using the latest version of Pidgin and/or report this issue to their bugtracker. |
|
@ShubjeetPal: Have you looked the @woj-tek comment? Note that Pidgin is not the best XMPP client. You have a client list here: |
|
Closing due to lack of feedback @Neustradamus PLEASE DON'T BUMP old issues! |
I am able to setup Tigase (8.0.0) server, port 5222 on windows 10 and use various chat client (PSI, PIDGIN, SPARK to chat) to communicate with my localhost server. When I am trying to setup BOSH, port 5280 and set it up with PIDGIN chat client its not working. Can any one tell how I can make BOSH work on windows 10 or give me a link based on which I can set it up correctly.