Open marufbd opened 4 years ago
I used RS512 , when i tried to verify with pub key I get
login failed for {badmatch,[]}
@muhun Which emqx version used?
I have fixed the RS256/RS512 compatibility with others platform on v4.0.7 https://github.com/emqx/emqx-auth-jwt/pull/115
Maybe you can try it for setting:
auth.jwt.signature_format = raw
I am currently using emqx broker on kubernetes with anonymous auth internally.
Now wanted to expose it through websocket and was trying to use this plugin for auth.
However it turns out only HS256 alg type works with a secret.
I am using the latest emqx/emqx docker image v3.2.3, see startup logs:
I've configured both secret and public key. secret:
secret
(i know this is not secure)Both above token is HS256. Now this RS256 token gives weird error:
Error in log:
2019-09-16 05:22:47.512 [warning] test_client@192.168.13.126:57430 [Protocol] Client test_client (Username: 'test_user') login failed for badarg