change: Make credential extractors specialized.

This commit is contained in:
Ruben Verborgh
2020-11-27 00:17:40 +01:00
committed by Joachim Van Herwegen
parent 0407a36490
commit b0c50b8a7b
14 changed files with 164 additions and 68 deletions

View File

@@ -2,10 +2,10 @@ import type { HttpHandler,
ResourceStore } from '../../index';
import {
AuthenticatedLdpHandler,
EmptyCredentialsExtractor,
FirstCompositeHandler,
MethodPermissionsExtractor,
RdfToQuadConverter,
UnsecureWebIdExtractor,
QuadToRdfConverter,
} from '../../index';
import type { ServerConfig } from './ServerConfig';
@@ -39,7 +39,7 @@ export class BasicHandlersWithAclConfig implements ServerConfig {
public getHttpHandler(): HttpHandler {
const requestParser = getBasicRequestParser();
const credentialsExtractor = new UnsecureWebIdExtractor();
const credentialsExtractor = new EmptyCredentialsExtractor();
const permissionsExtractor = new FirstCompositeHandler([
new MethodPermissionsExtractor(),
]);