mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Add workaround for authn library issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user