Questions tagged [ejabberd-auth]

26 questions
8
votes
1 answer

ejabberd API invite to MUC room

I am working on ejabberd API to invite users to MUC room. I have setup OAuth for API. I have tested oauth with get_room_occupants and its working fine. Now, I am trying to access /api/send_direct_invitation, but as per logs, I don't have permission…
Arpit Vaishnav
  • 4,739
  • 6
  • 39
  • 57
3
votes
1 answer

Unable to connect to ejabberd server using strophe js while using a async

I am attempting to connect to the Ejabberd server using StropheJS after executing an async action to get JWT token from the backend. Whenever I use async/await functions before making connection in strophe it shows the following issue, WebSocket…
3
votes
1 answer

how to authenticate users on ejabberd using an access token

I have a running application that has the phone number as identifier and users are granted access token to access other apis if they verify their accounts. I don't have passwords. to explain it more : the client verifies the phone number throw a…
Tareq Assi
  • 149
  • 13
2
votes
1 answer

ejabberd server does not start because ``mod_shared_roster`` module fails to start

I am trying to start an ejabberd server but when I run the command ejabberdctl live or ejabberdctl foreground I am getting an error. The error states that the mod_shared_roster module cannot start, but the error reason is undef which doesn't help…
Yashawant
  • 1,122
  • 4
  • 10
2
votes
2 answers

JWT secret to use with ejabberd?

I'm following these: https://www.process-one.net/blog/ejabberd-19-08/ https://docs.ejabberd.im/admin/configuration/authentication/#jwt-authentication and have created a secret.key like below using https://mkjwk.org/ to match the example in the…
Gavin Henry
  • 182
  • 1
  • 1
  • 16
1
vote
0 answers

Xmpp client error auth failure: Nonce mismatch

I am using github.com/mattn/go-xmpp/xmpp golang package to send the messages to ejabberd. I have added a valid user and messages are sent but sometimes it gives error :auth failure: Nonce mismatch. This error is occur while multiple user send…
1
vote
1 answer

Ejabberd external auth with python is giving timeout error

I'm getting below error message in error.log of ejabberd when i try to authenticate through an external python script (Tried with java also). External script is succesfully receiving inputs from ejabberd and processing it how it should. But it takes…
Vipin CP
  • 3,642
  • 3
  • 33
  • 55
1
vote
1 answer

XMPP, Ejebberd auth-mechanism

I would like to ask if there is a possibility to force the authentification mechanisms in the ejabberd config. Currently the ejabberd server is providing a list of the available, authentification mechanisms. In the ejabberd log we can see the…
1
vote
1 answer

Failed to start external authentication program in Ejabberd 19.09.1

I'm trying to run an external authentication script in Ejabberd 19.09.1 running on Ubuntu 18.04.3, but I'm running into problems. After trying and failing I tried to more or less directly copy the examples from the documentation: I set the…
Wopenras
  • 33
  • 2
1
vote
1 answer

Ejabberd - ejabberd_auth_external:failure:103 External authentication program failed when calling 'check_password'

I already have a schema of users with authentication-key and wanted to do authentication via that. I tried implementing authentication via sql but due to different structure of my schema I was getting error and so I implemented…
user8201447
1
vote
1 answer

Ejabberd oauth is not generating token

Can some please explain me how to configure ejabberd rest api support, I could not find any sufficient resource regarding this. I'm using linux (ubuntu 16.04), so till now I've done apt-get -y install ejabberd and please tell me is there any need…
Sanjay Sahu
  • 43
  • 2
  • 7
0
votes
1 answer

Ejabberd APIs not working with python requests

I'm using ejabberd from the docker container. I followed this link to install ejabberd docker container. I tried the Administration APIs in the docs. For example, I have tried to register users with API in postman. It worked and created the user in…
0
votes
1 answer

What does Ejabberd authentication do?

There's these external scripts here: https://docs.ejabberd.im/admin/configuration/authentication/#external-script Which have zero documentation outside of saying "point your config file to the location of the script you wrote" and a list of…
Ryan Glenn
  • 1,325
  • 4
  • 17
  • 30
0
votes
1 answer

Integrated EJabberd Login with existing Script1

I have quiet decent knowledge how to use Ejabberd. Have used a lot with Smack Library for android so am quiet comfortable as a user. However I face use case that I have not faced before. There exists as system with its users and login interfaces…
Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93
0
votes
1 answer

How to generate bearer token in REST api of ejabberd using POSTMAN

Hello guys I am using ejabberd and I want to generate a bearer token to access all the methods and to get the data using the REST of ejabberd. When I try to generate the bearer token with no auth in header it shows an error which is i am using the…
1
2