Skip to content
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

Update JWT for hooks #63

Merged
merged 1 commit into from Mar 16, 2019

Conversation

@terry-xiaoyu
Copy link
Contributor

terry-xiaoyu commented Mar 16, 2019

By default users can only put the JWT in password of the MQTT CONNECT packet. But this is not convenient, as if user what to use JWT auth, there's a good chance they won't need a 'username' - 'password' pair, they may what to put them all in to JWT claims.

Now I added a new config entry so that users can use username field as JWT. No password is needed.

## From where the JWT string can be got
##
## Value: username | password
## Default: password
auth.jwt.from = password
@terry-xiaoyu terry-xiaoyu merged commit aa3a6ec into develop Mar 16, 2019
@terry-xiaoyu terry-xiaoyu deleted the hooks branch Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.