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

Space characters aren't trimmed for permissions. #263

Open
saltukalakus opened this issue Apr 17, 2020 · 0 comments
Open

Space characters aren't trimmed for permissions. #263

saltukalakus opened this issue Apr 17, 2020 · 0 comments

Comments

@saltukalakus
Copy link

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: [email protected]
pass: 111111

Environment

Extension version: 2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant