Fix Login code #15
ci.yml
on: push
Matrix: test
lint
/
lint
44s
Matrix: sonar-scan
Annotations
24 errors and 7 warnings
lint / lint:
packages/browser/src/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.ts#L163
Unexpected if as the only statement in an else block
|
lint / lint:
packages/core/src/authenticatedFetch/dpopUtils.ts#L22
Replace `·JWK,·KeyLike,·SignJWT,·generateKeyPair,·exportJWK,·importJWK·` with `⏎··JWK,⏎··KeyLike,⏎··SignJWT,⏎··generateKeyPair,⏎··exportJWK,⏎··importJWK,⏎`
|
lint / lint:
packages/core/src/authenticatedFetch/dpopUtils.ts#L74
Replace `·{extractable:true` with `⏎····{·extractable:·true·`
|
|
lint / lint:
packages/core/src/authenticatedFetch/dpopUtils.ts#L87
Replace `pubKey:·any,·privKey:·any` with `⏎··pubKey:·any,⏎··privKey:·any⏎`
|
|
|
lint / lint:
packages/core/src/authenticatedFetch/dpopUtils.ts#L90
Replace `·await·importJWK(privateKeyJWK)` with `await·importJWK(privateKeyJWK);`
|
|
|
Session › handleIncomingRedirect › uses current window location as default redirect URL:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/browser/src/Session.spec.ts:256:39)
|
ClientAuthentication › handleIncomingRedirect › calls handle redirect:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/node/src/ClientAuthentication.spec.ts:312:51)
at runMicrotasks (<anonymous>)
|
ClientAuthentication › handleIncomingRedirect › calls handle redirect with the refresh token handler if one is provided:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/node/src/ClientAuthentication.spec.ts:334:51)
at runMicrotasks (<anonymous>)
|
test (14.x)
Process completed with exit code 1.
|
test (16.x)
The job was canceled because "_14_x" failed.
|
Session › handleIncomingRedirect › uses current window location as default redirect URL:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/browser/src/Session.spec.ts:256:39)
|
ClientAuthentication › handleIncomingRedirect › calls handle redirect:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/node/src/ClientAuthentication.spec.ts:312:51)
|
ClientAuthentication › handleIncomingRedirect › calls handle redirect with the refresh token handler if one is provided:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/node/src/ClientAuthentication.spec.ts:334:51)
|
test (16.x)
The operation was canceled.
|
test (18.x)
The job was canceled because "_14_x" failed.
|
Session › handleIncomingRedirect › uses current window location as default redirect URL:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/browser/src/Session.spec.ts:256:39)
|
ClientAuthentication › handleIncomingRedirect › calls handle redirect:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/node/src/ClientAuthentication.spec.ts:312:51)
|
ClientAuthentication › handleIncomingRedirect › calls handle redirect with the refresh token handler if one is provided:
packages/core/dist/index.js#L30
events only implements ISessionEventListener: [constructor] is not supported
at Object.get (packages/core/dist/index.js:30:19)
at Object.test (node_modules/pretty-format/build/plugins/DOMElement.js:41:24)
at findPlugin (node_modules/pretty-format/build/index.js:302:22)
at printer (node_modules/pretty-format/build/index.js:312:18)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
at format (node_modules/pretty-format/build/index.js:466:10)
at node_modules/expect/build/spyMatchers.js:25:63
at Array.map (<anonymous>)
at printExpectedArgs (node_modules/expect/build/spyMatchers.js:25:16)
at printExpectedReceivedCallsPositive (node_modules/expect/build/spyMatchers.js:103:37)
at message (node_modules/expect/build/spyMatchers.js:610:13)
at getMessage (node_modules/expect/build/index.js:144:15)
at processResult (node_modules/expect/build/index.js:262:25)
at Object.throwingMatcher [as toHaveBeenCalledWith] (node_modules/expect/build/index.js:328:16)
at Object.<anonymous> (packages/node/src/ClientAuthentication.spec.ts:334:51)
|
test (18.x)
The operation was canceled.
|
lint / lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint / lint:
packages/core/src/authenticatedFetch/dpopUtils.ts#L87
Unexpected any. Specify a different type
|
lint / lint:
packages/core/src/authenticatedFetch/dpopUtils.ts#L87
Unexpected any. Specify a different type
|
lint / lint:
packages/node/src/dependencies.spec.ts#L134
Disabled test
|
lint / lint:
packages/node/src/dependencies.spec.ts#L158
Disabled test
|
lint / lint:
packages/oidc-browser/src/dpop/tokenExchange.ts#L273
Unexpected any. Specify a different type
|
test (14.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|