You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a discrepancy between the key algorithm (in my case, EdDSA with Ed25519) configured in auth_method and the jwt algorithm sent by the client (here, RS256), ejabberd_c2s crashes (see error above) and closes the connection instead of properly sending a not-authorized error.
The text was updated successfully, but these errors were encountered:
ejabberd calls jose inside a try ... catch. I'd say this should catch the crash from jose, but it only catches error:{badarg, _}
You could try a patch like this, to check if ejabberd is able to catch those crashes. In that case, it should be possible to catch it and return some nice response:
Environment
Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 13.0.3
Errors from error.log/crash.log
Bug description
If there is a discrepancy between the key algorithm (in my case, EdDSA with Ed25519) configured in
auth_method
and the jwt algorithm sent by the client (here, RS256), ejabberd_c2s crashes (see error above) and closes the connection instead of properly sending anot-authorized
error.The text was updated successfully, but these errors were encountered: