Tigase Forums

API and development: About tigase voice and video call development

Tigase XMPP Server Board - Thu, 07/12/2018 - 19:10

Excuse me what factors do the app need to access the instant messaging function? What protocol is used? How to access?

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Tue, 07/10/2018 - 22:40

Hi,

Thank you for checking the configuration. I am adding videos in the message to understand issue more clearly.

I am unable to access/use following tabs, Please see video:-
Admin Authntication Failed: https://drive.google.com/file/d/1i7O2rIgKi5ksT7f67t9pyAyOjae_KaP9/view?usp=drivesdk

Server tab: https://drive.google.com/file/d/13LZG9qR_E9GYJmuGIPD3joiHrFu5za7p/view?usp=drivesdk

User interface tab: It doesn't allow to register/login. https://drive.google.com/file/d/1TN5tIRh0tlUXahboB5KNWo7bTqTN3aPq/view?usp=drivesdk

As for Postman - it looks like you are not authorising the request (you haven't include Authorization tab so that's mostly a guess).

but, I am able to create user using same API configuration 'http://192.168.168.31:8080/rest/user/jptiwari@gmail.com'. Screenshot attached.

Regards,
JP

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Tue, 07/10/2018 - 09:32

JP Tiwari wrote:

Can you please share a sample code for mysql and mongodb of how to create a JID in the repository?

It's not possible to add user by hand with MongoDB.

JP Tiwari wrote:

We have created another instance of tigase server with MYSQL and ran the command "call TigAddUserPlainPw('tigaseuser@server31', 'pass123');", It has created the user under "tig_users" DB table but I am still unable to access admin panel via the login details.

Which URL are you using?
The configuration looks ok.

As for Postman - it looks like you are not authorising the request (you haven't include Authorization tab so that's mostly a guess).

For Your Info: I have setup tigase at local server that have IP 192.168.168.31, I am assuming there is no need to setup tigase on globally access server.

Yes, this is the IP - by default it uses port 8080.

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Tue, 07/10/2018 - 05:28

Hi,

We have created another instance of tigase server with MYSQL and ran the command "call TigAddUserPlainPw('tigaseuser@server31', 'pass123');", It has created the user under "tig_users" DB table but I am still unable to access admin panel via the login details.

For Your Info: I have setup tigase at local server that have IP 192.168.168.31, I am assuming there is no need to setup tigase on globally access server.

Thank You

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Mon, 07/09/2018 - 04:02

Could you share sample of the credentials that you use?
Please see attached screenshot

Regarding the configuration file, can you please show me how to access it and create a new JID credentials so I can use it to access the admin?

It's described here --admins
Please note that this only configures which JIDs would be treated as administrators - you have to create those user accounts in the repository yourself. In case of RDBMS you can execute TigAddUserPlainPw() stored procedure. In case of Mongo is a bit more complex and the easiest option would be to use In-band Registration and simply provide details/JID od the account you want to register/create.
I have created user using the API "PUT/rest/user/{user_jid}" but getting error when trying to access the admin panel via the user's credentials as admin. Screenshot: https://drive.google.com/file/d/1Y3PHuOh0eRw4oXnxTEe4vnI6av_4U9Jc/view?usp=drivesdk

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Fri, 07/06/2018 - 08:49

JP Tiwari wrote:

Hi,

Thank you for the response. However, I’m still having some issues even though I’m using the same authentication in other api calls which are working but for some strange reasons it’s not working with the ones I mentioned earlier.

Could you share sample of the credentials that you use?

Regarding the configuration file, can you please show me how to access it and create a new JID credentials so I can use it to access the admin?

It's described here --admins
Please note that this only configures which JIDs would be treated as administrators - you have to create those user accounts in the repository yourself. In case of RDBMS you can execute TigAddUserPlainPw() stored procedure. In case of Mongo is a bit more complex and the easiest option would be to use In-band Registration and simply provide details/JID od the account you want to register/create.

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Thu, 07/05/2018 - 06:30

Hi,

Thank you for the response. However, I’m still having some issues even though I’m using the same authentication in other api calls which are working but for some strange reasons it’s not working with the ones I mentioned earlier.

Regarding the configuration file, can you please show me how to access it and create a new JID credentials so I can use it to access the admin?

Thanks,
JP

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Wed, 07/04/2018 - 09:14

JP Tiwari wrote:

Hi,

Thank you for your reply.

User create, avatar change, password change APIs are working.

Can you please let me know that why following APIs are not working:

Most likely you must authorise all the requests.

I am still unable to access admin area http://192.168.168.31:8080/admin/ with username 'root' and password 'root'.

Appologies - this allows you only to access setup module. You must use one of the admin users (defined in configuration file) that is present in the repository (you have to use JID of that user!)

What is the way to get/generate {component_jid}, {to_jid}, {pubsub_jid}, {adhoc_command_node}?

I'm sorry but I don't understand the question.

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Fri, 06/29/2018 - 02:35

Hi,

Thank you for your reply.

User create, avatar change, password change APIs are working.

Can you please let me know that why following APIs are not working:
GET: http://192.168.168.31:8080/rest/users/ //Output: Not authorized
DELETE: http://192.168.168.31:8080/rest/user/tigaseuser@gmail.com //Output: null, Comment: User is not deleting
GET: http://192.168.168.31:8080/rest/user/tigaseuser@gmail.com //Output: null
GET: http://192.168.168.31:8080/rest/avatar/tigaseuser@gmail.com/vcard4

I am still unable to access admin area http://192.168.168.31:8080/admin/ with username 'root' and password 'root'.

What is the way to get/generate {component_jid}, {to_jid}, {pubsub_jid}, {adhoc_command_node}?

Tigase log and mongoDB schema's screenshot attached.

Regards,
JP

Categories: Tigase Forums

API and development: RE: XMPP admin access and API issue

Tigase XMPP Server Board - Thu, 06/28/2018 - 10:13

JP Tiwari wrote:

I am unable to access admin of tigase server. can you please help me? init.properties file attached.

You should use either:

  • credentials of one of the admin users (complete JID and password) or
  • credentials configured in init.properties:
http/setup/admin-credentials=root:root

One more thing, I am creating user using REST API http://192.168.168.31:8080/rest/user/test@gmail.com with payload test12345 but getting error "To access URI = '/rest/user/jptiwari@gmail.com' a valid api key is required". Can you please let me what api key I should use and where?

You should configure API KEYS (see RestModule configuration). If you don't want to use API KEYs you can configure open access with following configuration:

--api-keys=open_access
Categories: Tigase Forums

API and development: XMPP admin access and API issue

Tigase XMPP Server Board - Wed, 06/27/2018 - 21:37

Hi,

I am unable to access admin of tigase server. can you please help me? init.properties file attached.

One more thing, I am creating user using REST API http://192.168.168.31:8080/rest/user/test@gmail.com with payload test12345 but getting error "To access URI = '/rest/user/jptiwari@gmail.com' a valid api key is required". Can you please let me what api key I should use and where?

Please see attached screenshot for payload and api call.

Thanks,
JP

Categories: Tigase Forums

API and development: RE: Can't connect via https (BOSH) on port 5281

Tigase XMPP Server Board - Wed, 06/27/2018 - 09:41

You should place your certificate in certs/default.pem as our BOSH implementation doesn't support SNI.

Categories: Tigase Forums

API and development: Can't connect via https (BOSH) on port 5281

Tigase XMPP Server Board - Wed, 06/27/2018 - 03:33

Using Tigase 7.0.1

I recently installed an SSL certificate to our site domain, to use https on port 443. The same domain is used to connect to the XMPP server on ports 5280 and 5281. However, i can't connect on port 5281.

Here is my init.properties, for the bosh setup:

--bosh-ports=5280,5281
bosh/connections/5281/socket=ssl
bosh/connections/5281/type=accept

I can connect to port 5280 just fine, using openssl s_client -connect my-site.net:5280. However, trying to connect to 5281, it hangs for about 10 seconds, then results in:


15708:error:0200274C:system library:connect:reason(1868):crypto\bio\b_sock2.c:108:
15708:error:2008A067:BIO routines:BIO_connect:connect error:crypto\bio\b_sock2.c:109:
connect:errno=0

We have GoDaddy for our CA. I've tried using the default certificate generated by Tigase (certs/my-site.net.pem), and it doesn't work. I've creating my own pem file, consisting of the .crt (assigned from godaddy), .key, intermediates cert (from godaddy), and root cert (from godaddy), naming it my-site.net.pem, and it makes no difference.

Is there anything I'm overlooking? Thanks

Categories: Tigase Forums

Installation and maintenance: RE: SSL handshake issue

Tigase XMPP Server Board - Mon, 06/25/2018 - 09:48

Nirmal Kumar Raveendranath wrote:

I found the problem, it is with certification. the certification is not valid

In what way it was not valid?

Categories: Tigase Forums

API and development: Mobile login with OTP

Tigase XMPP Server Board - Mon, 06/25/2018 - 07:26

do you have support to alter the login procedure so that I can login with mobile and otp response shared with some status that can give me authorization message if login is successful?

Categories: Tigase Forums

Installation and maintenance: RE: SSL handshake issue

Tigase XMPP Server Board - Mon, 06/25/2018 - 07:25

Hmmm… Still very interesting (or weird), because simply "invalid certificate" (outdated, or revoked) shouldn't cause such error.

Categories: Tigase Forums

Installation and maintenance: RE: SSL handshake issue

Tigase XMPP Server Board - Mon, 06/25/2018 - 07:24

I found the problem, it is with certification. the certification is not valid

Categories: Tigase Forums

Installation and maintenance: RE: SSL handshake issue

Tigase XMPP Server Board - Fri, 06/22/2018 - 09:45

@Nirmal - have you made any modifications to Tigase Messanger or jaxmpp library?

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone:
+1 (844) 273-0551 (Toll-free USA and Canada)
+1 (415) 900-4774 (International)

Follow us on:

Twitter

Back to Top