Project

General

Profile

Authentication failure java.lang.IllegalArgumentException: Empty key

Nirmal Kumar Raveendranath
Added 7 months ago

I am using Mongodb and tried to register a user with name and password, but it stores the password in plaintext in the database

How to enable SCRAM SHA1 in tigase 7.1.3 for authentication of users

java.lang.IllegalArgumentException: Empty key
        at javax.crypto.spec.SecretKeySpec.<init>(SecretKeySpec.java:96)
        at tigase.auth.mechanisms.AbstractSaslSCRAM.key(AbstractSaslSCRAM.java:181)
        at tigase.auth.mechanisms.AbstractSaslSCRAM.processClientFirstMessage(AbstractSaslSCRAM.java:221)
        at tigase.auth.mechanisms.AbstractSaslSCRAM.evaluateResponse(AbstractSaslSCRAM.java:151)
        at tigase.xmpp.impl.SaslAuth.process(SaslAuth.java:277)
        at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2561)
        at tigase.util.WorkerThread.run(WorkerThread.java:128)


Replies (3)

Added by Nirmal Kumar Raveendranath 7 months ago

for now I have disabled encryption with this

sess-man/plugins-conf/enabled-mechanisms=PLAIN

How to use encryption for password in mongodb

Added by Nirmal Kumar Raveendranath 7 months ago

can anyone pls help me

Added by Wojciech Kapcia TigaseTeam 7 months ago

Generic solution was implemented in version 8.0.0

In previous version it was possible to encrypt passwords in the database, but it would force users to use SASL PLAIN and was only supported for relational databases.

    (1-3/3)