fix: Allow clients to be remembered in the SessionHttpHandler

This commit is contained in:
Joachim Van Herwegen
2021-08-17 15:55:03 +02:00
parent 1173f98b5d
commit 47b3a2d77f
7 changed files with 28 additions and 13 deletions

View File

@@ -168,11 +168,10 @@ describe('A Solid server with IDP', (): void => {
it('can log in again.', async(): Promise<void> => {
const url = await state.startSession();
// For the following part it is debatable if this is correct but this might be a consequence of the authn client
const form = await state.extractFormUrl(url);
expect(form.url.endsWith('/confirm')).toBe(true);
const res = await state.fetchIdp(form.url, 'POST');
const res = await state.fetchIdp(form.url, 'POST', '', APPLICATION_X_WWW_FORM_URLENCODED);
const nextUrl = res.headers.get('location');
expect(typeof nextUrl).toBe('string');