mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Bearer token support
This commit is contained in:
committed by
Ruben Verborgh
parent
97e7e42fdc
commit
bdfd7cf902
@@ -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> => {
|
||||
|
||||
Reference in New Issue
Block a user