mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Let InitialInteractionHandler redirect requests
This commit is contained in:
@@ -87,7 +87,12 @@ export class IdentityTestState {
|
||||
expect(nextUrl.startsWith(this.oidcIssuer)).toBeTruthy();
|
||||
|
||||
// Need to catch the redirect so we can copy the cookies
|
||||
const res = await this.fetchIdp(nextUrl);
|
||||
let res = await this.fetchIdp(nextUrl);
|
||||
expect(res.status).toBe(302);
|
||||
nextUrl = res.headers.get('location')!;
|
||||
|
||||
// Redirect from main page to specific page (login or confirmation)
|
||||
res = await this.fetchIdp(nextUrl);
|
||||
expect(res.status).toBe(302);
|
||||
nextUrl = res.headers.get('location')!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user