cidaas-javascript-sdk 2.0.9 → 2.0.10

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.0.9",
3
+ "version": "2.0.10",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",
@@ -36,4 +36,4 @@
36
36
  "src/main/**/*.{js,jsx,mjs}"
37
37
  ]
38
38
  }
39
- }
39
+ }
@@ -83,9 +83,9 @@ WebAuth.prototype.loginCallback = function () {
83
83
  } else if (window.webAuthSettings.mode == 'window') {
84
84
  window.authentication.popupSignInCallback();
85
85
  } else if (window.webAuthSettings.mode == 'silent') {
86
- window.authentication.silentSignInCallbackV2().then(function(data){
86
+ window.authentication.silentSignInCallbackV2().then(function (data) {
87
87
  resolve(data);
88
- }).catch(function(error){
88
+ }).catch(function (error) {
89
89
  reject(error);
90
90
  })
91
91
  }
@@ -1129,6 +1129,26 @@ WebAuth.prototype.scopeConsentContinue = function (options) {
1129
1129
  }
1130
1130
  };
1131
1131
 
1132
+ // accept claim Consent
1133
+ WebAuth.prototype.acceptClaimConsent = function (options) {
1134
+ var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/consent/claim/accept";
1135
+ return createPostPromise(options, _serviceURL, false);
1136
+ };
1137
+
1138
+ // claim consent continue login
1139
+ WebAuth.prototype.claimConsentContinue = function (options) {
1140
+ try {
1141
+ var form = document.createElement('form');
1142
+ form.action = window.webAuthSettings.authority + "/login-srv/precheck/continue/" + options.track_id;
1143
+ form.method = 'POST';
1144
+ document.body.appendChild(form);
1145
+ form.submit();
1146
+ } catch (ex) {
1147
+ throw new CustomException(ex, 417);
1148
+ }
1149
+ };
1150
+
1151
+
1132
1152
  // get Deduplication details
1133
1153
  WebAuth.prototype.getDeduplicationDetails = function (options) {
1134
1154
  return new Promise(function (resolve, reject) {
@@ -79,6 +79,8 @@ declare class WebAuth {
79
79
  getScopeConsentVersionDetailsV2(options: any): Promise<any>;
80
80
  acceptScopeConsent(options: any): Promise<any>;
81
81
  scopeConsentContinue(options: any): void;
82
+ acceptClaimConsent(options: any): Promise<any>;
83
+ claimConsentContinue(options: any): void;
82
84
  getDeduplicationDetails(options: any): Promise<any>;
83
85
  deduplicationLogin(options: any): void;
84
86
  registerDeduplication(options: any): Promise<any>;