piral-oidc 0.15.0-alpha.4041 → 0.15.0-alpha.4231
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/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/setup.js +2 -2
- package/package.json +17 -4
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./create"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./setup"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB;AACxB,kDAAwB"}
|
package/lib/setup.js
CHANGED
|
@@ -96,7 +96,7 @@ function setupOidcClient(config) {
|
|
|
96
96
|
}, (err) => rej(new OidcError_1.OidcError(types_1.OidcErrorType.unknown, err)));
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
const handleAuthentication = () => new Promise((resolve, reject) =>
|
|
99
|
+
const handleAuthentication = () => new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
100
100
|
/** The user that is resolved when finishing the callback */
|
|
101
101
|
let user;
|
|
102
102
|
if ((doesWindowLocationMatch(userManager.settings.silent_redirect_uri) ||
|
|
@@ -158,7 +158,7 @@ function setupOidcClient(config) {
|
|
|
158
158
|
return reject(new OidcError_1.OidcError(types_1.OidcErrorType.invalidToken));
|
|
159
159
|
}
|
|
160
160
|
})
|
|
161
|
-
.catch((reason) =>
|
|
161
|
+
.catch((reason) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
162
162
|
if (reason.type === types_1.OidcErrorType.notAuthorized) {
|
|
163
163
|
/*
|
|
164
164
|
* Expected Error during normal code flow:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-oidc",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.4231",
|
|
4
4
|
"description": "Plugin to integrate authentication using OpenID connect in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -22,6 +22,19 @@
|
|
|
22
22
|
"module": "esm/index.js",
|
|
23
23
|
"main": "lib/index.js",
|
|
24
24
|
"typings": "lib/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./esm/index.js",
|
|
28
|
+
"require": "./lib/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./esm/*": {
|
|
31
|
+
"import": "./esm/*"
|
|
32
|
+
},
|
|
33
|
+
"./lib/*": {
|
|
34
|
+
"require": "./lib/*"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
25
38
|
"sideEffects": false,
|
|
26
39
|
"files": [
|
|
27
40
|
"esm",
|
|
@@ -49,10 +62,10 @@
|
|
|
49
62
|
"oidc-client": "^1.10.1"
|
|
50
63
|
},
|
|
51
64
|
"devDependencies": {
|
|
52
|
-
"piral-core": "0.15.0-alpha.
|
|
65
|
+
"piral-core": "0.15.0-alpha.4231"
|
|
53
66
|
},
|
|
54
67
|
"peerDependencies": {
|
|
55
|
-
"piral-core": "0.14.x"
|
|
68
|
+
"piral-core": "0.14.x || 0.15.x"
|
|
56
69
|
},
|
|
57
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "4e7f158bd276d82c5bf2c19d47ccfb3604f38e38"
|
|
58
71
|
}
|