fix: Add workaround for authn library issue

This commit is contained in:
Joachim Van Herwegen
2023-10-03 10:00:40 +02:00
parent cccca96d28
commit 180d5f131e
3 changed files with 48 additions and 62 deletions

View File

@@ -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);
}