-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force Anonymous login on React Native? #770
Comments
The issue seems to be that your server does not offer anonymous authentication on that domain. You probably should use https://xmpp.org/extensions/xep-0077.html directly instead. Unfortunally xmpp.js does not have helpers for it but it should be quite easy to implement yourself and if you'd like to contribute the code to xmpp.js I'd be happy to help. I could be wrong but I'm not aware of registration from an anonymous session being a thing in XMPP anyway. |
see #783 |
This might be related to #593 , I'm not sure, but when I use the lib on React Native, with username/password or not, the authentication method is always
PLAIN
:Tracing down to
@xmpp/sasl/index.js
I saw this:But
features
only contains 4 mechanisms:And no
ANONYMOUS
I need anonymous authentication for account registration first, then login using registered account. From above info, I created a client:
and as expected,
mechanism
is alwaysPLAIN
Is there a way to fix this?
The text was updated successfully, but these errors were encountered: