mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Add solid_oidc_supported to openid config
* fix: added solid_oidc_supported to openid config * test: fixed coverage * chore: moved solid_oidc_supported to config discovery
This commit is contained in:
parent
478a915790
commit
b328f9a1b0
@ -128,6 +128,9 @@ export class KeyConfigurationFactory implements ConfigurationFactory {
|
|||||||
token: this.createRoute('token'),
|
token: this.createRoute('token'),
|
||||||
userinfo: this.createRoute('me'),
|
userinfo: this.createRoute('me'),
|
||||||
},
|
},
|
||||||
|
discovery: {
|
||||||
|
solid_oidc_supported: 'https://solidproject.org/TR/solid-oidc',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -334,4 +334,14 @@ describe('A Solid server with IDP', (): void => {
|
|||||||
expect(res.status).toBe(205);
|
expect(res.status).toBe(205);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('openid-configuration', (): void => {
|
||||||
|
it('should contain solid_oidc_supported key.', async(): Promise<void> => {
|
||||||
|
const res = await fetch(`${baseUrl}.well-known/openid-configuration`);
|
||||||
|
const jsonBody = await res.json();
|
||||||
|
|
||||||
|
expect(res.status).toBe(200);
|
||||||
|
expect(jsonBody.solid_oidc_supported).toEqual('https://solidproject.org/TR/solid-oidc');
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@ -43,6 +43,9 @@ function getExpected(adapter: any, cookieKeys: any, jwks: any): any {
|
|||||||
token: '/foo/idp/token',
|
token: '/foo/idp/token',
|
||||||
userinfo: '/foo/idp/me',
|
userinfo: '/foo/idp/me',
|
||||||
},
|
},
|
||||||
|
discovery: {
|
||||||
|
solid_oidc_supported: 'https://solidproject.org/TR/solid-oidc',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user