Coder Social home page Coder Social logo

ptarmiganlabs / qs-jwt Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 6.8 MB

Command line tool for creating JWTs that can be used to authenticate with client-managed Qlik Sense (a.k.a Qlik Sense Enterprise on Windows, QSEoW) and Qlik Sense Cloud.

License: MIT License

JavaScript 96.59% Dockerfile 3.41%
jwt qlik qliksense qlikcloud

qs-jwt's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar mountaindude avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mountaindude

qs-jwt's Issues

Make Winston logger handle errors properly

The logging module of qs-jwt does not currently handle error logging as well as it should.
Specifically, in some cases there is no stack trace or error message when errors occur.

This can be easily fixed by adding the following to the Winston.createLogger call:

winston.format.errors({ stack: true })

Poor description of --cert-privatekey option

--cert-privatekey <privatekey> Certificate private key of certificate that will be used to sign the JWT. is not ideal...

Change description to

Private key of certificate that will be used to sign the JWT.

payload contains parameter values instead of provided value

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 "[email protected]" --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.

Incorrect description for create-qseow command

What version of QS JWT are you using?

1.6.1

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

16.4.0

What command did you use to start QS JWT?

node qs-jwt.js --help

What operating system are you using?

macOS

What CPU architecture are you using?

x86_64

What Qlik Sense versions are you using?

2021-Nov

Describe the Bug

Description

"Create a JWT for use with client-managed Qlik Sense (a.k.a Qlik Sense Enterprise on Windows) or Qlik Cloud. Use --target option to target either platform."

is not correct. The --target parameter was removed in favour of having separate create-qseow and create-qscloud commands

Expected Behavior

Use something like

"Create a JWT for use with client-managed Qlik Sense (a.k.a Qlik Sense Enterprise on Windows)."

To Reproduce

No response

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • node 20-bullseye-slim
github-actions
.github/workflows/ci.yaml
  • googleapis/release-please-action v4
  • actions/checkout v4
  • actions/setup-node v4
  • ncipollo/release-action v1
  • actions/checkout v4
  • actions/setup-node v4
  • ncipollo/release-action v1
  • actions/checkout v4
  • actions/setup-node v4
  • github/codeql-action v3
  • ncipollo/release-action v1
.github/workflows/codeql-analysis.yaml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/virus-scan.yaml
  • crazy-max/ghaction-virustotal v4
npm
package.json
  • commander ^12.1.0
  • eslint ^8.57.0
  • eslint-config-airbnb-base ^15.0.0
  • eslint-config-prettier ^9.1.0
  • eslint-plugin-import ^2.29.1
  • eslint-plugin-prettier ^5.1.3
  • install ^0.13.0
  • jsonwebtoken ^9.0.2
  • node-forge ^1.3.1
  • uid-safe ^2.1.5
  • winston ^3.13.0
  • yargs ^17.7.2
  • esbuild ^0.21.4
  • prettier ^3.3.0
  • snyk ^1.1291.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.