Description
While setting the permissions, extension doesn't trim the space characters before and after the entered text. If the permissions are passed to token, additional characters may cause issues in some JWT libraries. For now, I have the following workaround in a rule to trim the spaces:
user.permissions = user.permissions.map(function (el) { return el.trim(); });
Reproduction
https://saltuk-dev.auth0.com/authorize?scope=openid+profile&audience=https://acme.com&response_type=token&state=my-custom-state&nonce=zzzz&client_id=9Lb35vCC0GAlb0iMTfbiP9U0qaHo0WbL&redirect_uri=https%3A%2F%2Fjwt.io
user: test@test.com
pass: 111111
Environment
Extension version: 2.8
Description
While setting the permissions, extension doesn't trim the space characters before and after the entered text. If the permissions are passed to token, additional characters may cause issues in some JWT libraries. For now, I have the following workaround in a rule to trim the spaces:
user.permissions = user.permissions.map(function (el) { return el.trim(); });Reproduction
https://saltuk-dev.auth0.com/authorize?scope=openid+profile&audience=https://acme.com&response_type=token&state=my-custom-state&nonce=zzzz&client_id=9Lb35vCC0GAlb0iMTfbiP9U0qaHo0WbL&redirect_uri=https%3A%2F%2Fjwt.io
user: test@test.com
pass: 111111
Environment
Extension version: 2.8