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

payload contains parameter values instead of provided value #159

Open
youritorchalski opened this issue Jun 20, 2024 · 1 comment
Open

Comments

@youritorchalski
Copy link

What version of QS JWT are you using?

1.12.0

What version of Node.js are you using? Not applicable if you use the standalone version of QS JWT.

N/A

What command did you use to start QS JWT?

qs-jwt create-qseow --userdir XXX --userid "exampleuser" --username "exampleuser" --useremail "" --groups "" --expires 364d --audience hLjrej784jiLE --cert-privatekey-file cert.pem

What operating system are you using?

Windows 11 Pro

What CPU architecture are you using?

x64

What Qlik Sense versions are you using?

QSEoW 202402 Patch 3

Describe the Bug

When using the following command, the payload shows the parameter value --group instead of no value, which was expected.
qs-jwt create-qseow --userdir XXX --userid "exampleuser" --username "exampleuser" --useremail "" --groups "" --expires 364d --audience hLjrej784jiLE --cert-privatekey-file cert.pem

Payload:
{
"userId": "exampleuser",
"userDirectory": "XXX",
"name": "exampleuser",
"email": "--groups",
"iat": 1718818337,
"exp": 1750267937,
"aud": "hLjrej784jiLE"
}

When using the following command, the program throws an error.
qs-jwt create-qseow --userdir XXX --userid "exampleuser" --username "exampleuser" --useremail "example@exampleorg.com" --groups "" --expires 364d --audience hLjrej784jiLE --cert-privatekey-file miklatorg.pem

Error:
error: required option '--expires ' not specified

Conclusion: It seems that either the useremail or groups parameter is not correctly handled.

Expected Behavior

That you can provide empty strings for a required parameter.

To Reproduce

Use the commands that I provided in the description of the bug.

@mountaindude
Copy link
Contributor

Hi @youritorchalski !

I am away from the keyboard a couple of weeks, will look into this big when I get a chance. Sounds like there's something not quite working as intended.

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

2 participants