Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello team. I want to enter API-keys to Authenticate to Qlik using qlik-cli contexts. But no matter what key I press on the keyboard or try the copy paste method, nothing changes. I tried from both powershell and cmd but it didn't work. My role in Qlik cloud is developer.
The posted API won't show up in the console since it's treated as a password
And the error you are seeing now indicates that you already have a context configured for that tenant/host
Try running qlik context ls to list the different contexts and you can remove the context by running qlik context rm <name>
Hi,
As the error says, context already exists, so to add new api key to same context you can use context update command like below
`qlik context update <context-name> --api-key "<api-key>"`
Or you can delete existing context and add new one
`qlik context rm <context-name>`
`qlik context init`
For more help on above context command try running
`qlik context update -h`
`qlik context init -h`
Why am I getting this error? Error: 401 Authorization Required
The existing api-key is expired or invalid. Try creating new api-key and update existing context with new api-key using context update command
qlik context update <context-name> --api-key "<api-key>"
Thank you for all your support. I want to ask one last thing. It requires qlik windows context to install migration tools. I couldn't find where to learn this:
" $QlikWindowsContext "
You need to follow the steps described on the migration centre. You first have to set up a context for windows using the steps documented there, which show you how to create a JWT IdP on client managed, and then generate a JWT, which you can then use to create a new context for Windows.
In fact, I have completed almost every process. I created JWT token after setting up virtual proxies. But when I come to the JWT format for Qlik Sense authorization part, I get confused and I don't know how or what I should do. Maybe the payload parts are unnecessary, I don't understand:
The payload.
The signing options.
The private key for signing the token.
Do I need to do these? Do I not create a context when I do the previous operations?
Unfortunately you do need to go through each step to generate the JWT. I do agree this process isn't as simple as it could be.
Generating the certificate is the first step. Then:
The JWT generated through the combination of these items is then what you use to create the new context.