mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
@@ -7,13 +7,12 @@ import { HttpRequest } from '../server/HttpRequest';
|
||||
*/
|
||||
export class SimpleCredentialsExtractor extends CredentialsExtractor {
|
||||
public async canHandle(): Promise<void> {
|
||||
return undefined;
|
||||
// Supports all requests
|
||||
}
|
||||
|
||||
public async handle(input: HttpRequest): Promise<Credentials> {
|
||||
if (input.headers.authorization) {
|
||||
return { webID: input.headers.authorization };
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user