feat: Bearer token support

This commit is contained in:
Matthieu Bosquet
2020-12-28 16:14:47 +00:00
committed by Ruben Verborgh
parent 97e7e42fdc
commit bdfd7cf902
8 changed files with 142 additions and 11 deletions

View File

@@ -80,7 +80,7 @@ describe('A DPoPWebIdExtractor', (): void => {
it('calls the DPoP verifier with the correct parameters.', async(): Promise<void> => {
await webIdExtractor.handleSafe(request);
expect(solidTokenVerifier).toHaveBeenCalledTimes(1);
expect(solidTokenVerifier).toHaveBeenCalledWith('DPoP token-1234', 'token-5678', 'GET', 'http://example.org/foo/bar');
expect(solidTokenVerifier).toHaveBeenCalledWith('DPoP token-1234', { header: 'token-5678', method: 'GET', url: 'http://example.org/foo/bar' });
});
it('returns the extracted WebID.', async(): Promise<void> => {