Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/countnazgul/qlik-saas-web-auth
Handle Qlik Sense SaaS web authentication
https://github.com/countnazgul/qlik-saas-web-auth
Last synced: 16 days ago
JSON representation
Handle Qlik Sense SaaS web authentication
- Host: GitHub
- URL: https://github.com/countnazgul/qlik-saas-web-auth
- Owner: countnazgul
- License: mit
- Created: 2021-11-24T02:47:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-19T05:13:06.000Z (over 2 years ago)
- Last Synced: 2024-12-17T20:43:28.271Z (20 days ago)
- Language: TypeScript
- Size: 54.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qlik SaaS Web Auth
Small package to handle **web** authentication when connecting to Qlik Sense SaaS edition
## Install
`npm install --save qlik-saas-web-auth`
The package require have `enigma.js` as `peerDependencies` (aka `enigma.js` have to be installed separately and passed to the package)
## Usage
- Connect to global
```javascript
import enigma from "enigma.js";
import schema from "enigma.js/schemas/12.67.2.json";import { QlikSaaSConnection } from "qlik-saas-web-auth";
const qlik = new QlikSaaSConnection(
{
webIntegrationId: "some-web-integration-id",
tenantDomain: "tenant.xx.qlikcloud.com",
},
enigma,
schema
);await qlik.connect();
console.log(qlik.global);
const app = await qlik.global.openDoc("some-doc-id");await qlik.session.close();
```- Connect to specific app
```javascript
import enigma from "enigma.js";
import schema from "enigma.js/schemas/12.67.2.json";import { QlikSaaSConnection } from "qlik-saas-web-auth";
const qlik = new QlikSaaSConnection(
{
webIntegrationId: "some-web-integration-id",
tenantDomain: "tenant.xx.qlikcloud.com",
},
enigma,
schema
);await qlik.connectAndOpenDoc("some-doc-id");
console.log(qlik.global);
console.log(qlik.app);await qlik.session.close();
```