chore(jwt): clearer explanation for verify_claims

This commit is contained in:
JianBo He 2021-02-20 11:39:01 +08:00 committed by JianBo He
parent 7778cd8623
commit 2c9ea3c29e
1 changed files with 9 additions and 5 deletions

View File

@ -36,10 +36,14 @@ auth.jwt.verify_claims = off
## The checklist of claims to validate ## The checklist of claims to validate
## ##
## Value: String ## Configuration format: auth.jwt.verify_claims.$name = $expected
## auth.jwt.verify_claims.$name = expected ## - $name: the name of the field in the JWT payload to be verified
## - $expected: the expected value
## ##
## Variables: ## The available placeholders for $expected:
## - %u: username ## - %u: username
## - %c: clientid ## - %c: clientid
##
## For example, to verify that the username in the JWT payload is the same
## as the client (MQTT protocol) username
#auth.jwt.verify_claims.username = %u #auth.jwt.verify_claims.username = %u