cidaas-javascript-sdk 4.0.1 → 4.0.2
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/CHANGELOG.md +9 -2
- package/README.md +1 -1
- package/dist/authentication/index.js +2 -0
- package/dist/web-auth/WebAuth.js +7 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
## [4.0.
|
|
1
|
+
## [4.0.2](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/compare/v4.0.1...v4.0.2) (2024-01-18)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* add error handling ([08017e3](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/08017e3d1da09186f2a4f3bd4b11e606bbeb3043))
|
|
7
|
+
* empty commit for release ([b73a4f8](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/b73a4f859d3d2044db883e0d096f0037c76bc6be))
|
|
8
|
+
* remove repository from package.json ([4a15688](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/4a15688f8355411049b4f2e63db7737daafd4c7f))
|
|
7
9
|
|
|
8
10
|
# Changelog
|
|
9
11
|
|
|
12
|
+
## V4.0.2
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- fix missing error handling in loginCallback() function
|
|
16
|
+
|
|
10
17
|
## V4.0.1
|
|
11
18
|
|
|
12
19
|
### Changed
|
package/README.md
CHANGED
|
@@ -200,4 +200,4 @@ The SDK will throws Custom Exception if something went wrong during the operatio
|
|
|
200
200
|
| HTTP Status Code | When could it be thrown |
|
|
201
201
|
|----------------- | ----------------------- |
|
|
202
202
|
| 500 | during creation of WebAuth instance |
|
|
203
|
-
| 417 | if there are any other failure |
|
|
203
|
+
| 417 | if there are any other failure |
|
package/dist/web-auth/WebAuth.js
CHANGED
|
@@ -151,19 +151,14 @@ var WebAuth = /** @class */ (function () {
|
|
|
151
151
|
*/
|
|
152
152
|
WebAuth.prototype.loginCallback = function () {
|
|
153
153
|
return new Promise(function (resolve, reject) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
throw new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417);
|
|
157
|
-
}
|
|
158
|
-
window.authentication.loginCallback().then(function (user) {
|
|
159
|
-
resolve(user);
|
|
160
|
-
})["catch"](function (ex) {
|
|
161
|
-
reject(ex);
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
catch (ex) {
|
|
165
|
-
console.log(ex);
|
|
154
|
+
if (!window.webAuthSettings && !window.authentication) {
|
|
155
|
+
throw new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417);
|
|
166
156
|
}
|
|
157
|
+
window.authentication.loginCallback().then(function (user) {
|
|
158
|
+
resolve(user);
|
|
159
|
+
})["catch"](function (ex) {
|
|
160
|
+
reject(ex);
|
|
161
|
+
});
|
|
167
162
|
});
|
|
168
163
|
};
|
|
169
164
|
;
|