Skip to content

Commit

Permalink
fix: Add workaround for authn library issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimvh committed Oct 6, 2023
1 parent cccca96 commit 180d5f1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 62 deletions.
101 changes: 42 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -161,8 +161,8 @@
"devDependencies": {
"@commitlint/cli": "^17.6.1",
"@commitlint/config-conventional": "^17.6.1",
"@inrupt/solid-client-authn-core": "^1.16.0",
"@inrupt/solid-client-authn-node": "^1.16.0",
"@inrupt/solid-client-authn-core": "^1.17.2",
"@inrupt/solid-client-authn-node": "^1.17.2",
"@microsoft/tsdoc-config": "^0.16.2",
"@tsconfig/node18": "^2.0.1",
"@types/cheerio": "^0.22.31",
Expand Down
5 changes: 4 additions & 1 deletion test/integration/IdentityTestState.ts
Expand Up @@ -132,7 +132,10 @@ export class IdentityTestState {
const mockUrl = res.headers.get('location')!;
expect(mockUrl.startsWith(this.redirectUrl)).toBeTruthy();

const info = await this.session.handleIncomingRedirect(mockUrl);
// Workaround for https://github.com/inrupt/solid-client-authn-js/issues/2985
const strippedUrl = new URL(mockUrl);
strippedUrl.searchParams.delete('iss');
const info = await this.session.handleIncomingRedirect(strippedUrl.href);
expect(info?.isLoggedIn).toBe(true);
}

Expand Down

0 comments on commit 180d5f1

Please sign in to comment.