cidaas-javascript-sdk 2.2.7 → 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cidaas-javascript-sdk",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",
@@ -27,7 +27,6 @@
27
27
  "registry": "https://registry.npmjs.org/"
28
28
  },
29
29
  "dependencies": {
30
- "@fingerprintjs/fingerprintjs": "^3.4.0",
31
30
  "@types/node": "^18.11.18",
32
31
  "crypto-js": "^4.1.1",
33
32
  "oidc-client": "^1.11.5"
@@ -2,7 +2,6 @@ var Authentication = require('../authentication');
2
2
  var CustomException = require('./exception');
3
3
  var Oidc = require('oidc-client');
4
4
  var CryptoJS = require("crypto-js");
5
- var fingerprint = require('@fingerprintjs/fingerprintjs')
6
5
 
7
6
 
8
7
  var code_verifier;
@@ -1929,11 +1928,18 @@ WebAuth.prototype.deviceCodeVerify = function (code) {
1929
1928
  }
1930
1929
 
1931
1930
 
1931
+ WebAuth.prototype.userCheckExistsV2 = function (options) {
1932
+ var _serviceURL = window.webAuthSettings.authority + "/useractions-srv/userexistence/" + options.requestId + "?webfinger=" + options.webfinger + "&rememberMe=" + options.rememberMe;
1933
+ return createPostPromise(options, _serviceURL, undefined);
1934
+ };
1935
+
1932
1936
  WebAuth.prototype.userCheckExists = function (options) {
1933
1937
  var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/checkexists/" + options.requestId;
1934
1938
  return createPostPromise(options, _serviceURL, undefined);
1935
1939
  };
1936
1940
 
1941
+
1942
+
1937
1943
  WebAuth.prototype.setAcceptLanguageHeader = function (acceptLanguage) {
1938
1944
  window.localeSettings = acceptLanguage;
1939
1945
  }
@@ -1943,13 +1949,9 @@ WebAuth.prototype.getDeviceInfo = function () {
1943
1949
  return new Promise(function (resolve, reject) {
1944
1950
  try {
1945
1951
  const value = ('; '+document.cookie).split(`; cidaas_dr=`).pop().split(';')[0];
1946
- const fpPromise = fingerprint.load();
1947
- var options = {fingerprint:"", userAgent:""};
1948
1952
  if(!value) {
1949
1953
  (async () => {
1950
- const fp = await fpPromise;
1951
- const result = await fp.get();
1952
- options.fingerprint = result.visitorId
1954
+ var options = {};
1953
1955
  options.userAgent = window.navigator.userAgent
1954
1956
  var http = new XMLHttpRequest();
1955
1957
  var _serviceURL = window.webAuthSettings.authority + "/device-srv/deviceinfo";
@@ -27,6 +27,8 @@ declare class WebAuth {
27
27
  getTenantInfo(): Promise<any>;
28
28
  logoutUser(options: any): void;
29
29
  getClientInfo(options: any): Promise<any>;
30
+ getDevicesInfo(options: any): Promise<any>;
31
+ deleteDevice(options: any): Promise<any>;
30
32
  getRegistrationSetup(options: any): Promise<any>;
31
33
  register(options: any, headers: any): Promise<any>;
32
34
  getInviteUserDetails(options: any): Promise<any>;
@@ -134,5 +136,5 @@ declare class WebAuth {
134
136
  deviceCodeVerify(code: any): void;
135
137
  userCheckExists(options: any): Promise<any>;
136
138
  setAcceptLanguageHeader(acceptLanguage: any): void;
137
- getDeviceInfo(options: any): Promise<any>;
139
+ getDeviceInfo(): Promise<any>;
138
140
  }
package/CHANGELOG.md DELETED
@@ -1,6 +0,0 @@
1
- ## [2.2.7](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/compare/v2.2.6...v2.2.7) (2023-02-06)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **[gitlab-240](https://gitlab.widas.de/cidaas-v2/auth/issues/-/issues/240):** added cookie for device_dr ([bb50022](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/bb5002253e36fdccd1052bba746e2efbcd031a07))