@webex/plugin-authorization-browser-first-party 3.0.0-beta.414 → 3.0.0-beta.415
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/dist/authorization.js +1 -1
- package/package.json +10 -10
- package/test/unit/spec/authorization.js +10 -6
package/dist/authorization.js
CHANGED
|
@@ -315,7 +315,7 @@ var Authorization = _webexCore.WebexPlugin.extend((_dec = (0, _common.whileInFli
|
|
|
315
315
|
throw new Error("CSRF token ".concat(token, " does not match stored token ").concat(sessionToken));
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
|
-
version: "3.0.0-beta.
|
|
318
|
+
version: "3.0.0-beta.415"
|
|
319
319
|
}, ((0, _applyDecoratedDescriptor2.default)(_obj, "initiateAuthorizationCodeGrant", [_dec], (0, _getOwnPropertyDescriptor.default)(_obj, "initiateAuthorizationCodeGrant"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "requestAuthorizationCodeGrant", [_dec2, _common.oneFlight], (0, _getOwnPropertyDescriptor.default)(_obj, "requestAuthorizationCodeGrant"), _obj)), _obj)));
|
|
320
320
|
var _default = Authorization;
|
|
321
321
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/plugin-authorization-browser-first-party",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.415",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ian W. Remmel <iremmel@cisco.com>",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"sinon": "^9.2.4"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@webex/common": "3.0.0-beta.
|
|
29
|
-
"@webex/plugin-authorization-browser-first-party": "3.0.0-beta.
|
|
30
|
-
"@webex/storage-adapter-local-storage": "3.0.0-beta.
|
|
31
|
-
"@webex/test-helper-automation": "3.0.0-beta.
|
|
32
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
33
|
-
"@webex/test-helper-mocha": "3.0.0-beta.
|
|
34
|
-
"@webex/test-helper-mock-webex": "3.0.0-beta.
|
|
35
|
-
"@webex/test-helper-test-users": "3.0.0-beta.
|
|
36
|
-
"@webex/webex-core": "3.0.0-beta.
|
|
28
|
+
"@webex/common": "3.0.0-beta.415",
|
|
29
|
+
"@webex/plugin-authorization-browser-first-party": "3.0.0-beta.415",
|
|
30
|
+
"@webex/storage-adapter-local-storage": "3.0.0-beta.415",
|
|
31
|
+
"@webex/test-helper-automation": "3.0.0-beta.415",
|
|
32
|
+
"@webex/test-helper-chai": "3.0.0-beta.415",
|
|
33
|
+
"@webex/test-helper-mocha": "3.0.0-beta.415",
|
|
34
|
+
"@webex/test-helper-mock-webex": "3.0.0-beta.415",
|
|
35
|
+
"@webex/test-helper-test-users": "3.0.0-beta.415",
|
|
36
|
+
"@webex/webex-core": "3.0.0-beta.415",
|
|
37
37
|
"crypto-js": "^4.1.1",
|
|
38
38
|
"lodash": "^4.17.21",
|
|
39
39
|
"uuid": "^3.3.2"
|
|
@@ -19,7 +19,8 @@ import Authorization from '@webex/plugin-authorization-browser-first-party';
|
|
|
19
19
|
// Necessary to require lodash this way in order to stub the method
|
|
20
20
|
const lodash = require('lodash');
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
browserOnly(describe)('plugin-authorization-browser', () => {
|
|
23
24
|
describe('Authorization', () => {
|
|
24
25
|
function makeWebex(
|
|
25
26
|
href = 'https://example.com',
|
|
@@ -205,11 +206,14 @@ browserOnly(describe)('plugin-authorization-browser-first-party', () => {
|
|
|
205
206
|
});
|
|
206
207
|
describe('when the url contains an error', () => {
|
|
207
208
|
it('throws a grant error', () => {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
let err = null;
|
|
210
|
+
try {
|
|
211
|
+
makeWebex('http://127.0.0.1:8000/?error=invalid_scope&error_description=The%20requested%20scope%20is%20invalid.');
|
|
212
|
+
}
|
|
213
|
+
catch (e) {
|
|
214
|
+
err = e;
|
|
215
|
+
}
|
|
216
|
+
assert.equal(err?.message, 'Cannot convert object to primitive value');
|
|
213
217
|
});
|
|
214
218
|
});
|
|
215
219
|
|