chore: Update dependencies

This commit is contained in:
Joachim Van Herwegen
2021-06-29 11:29:38 +02:00
parent d01382d36e
commit 5edbbc1958
37 changed files with 2904 additions and 3617 deletions

View File

@@ -30,7 +30,7 @@ export class BearerWebIdExtractor extends CredentialsExtractor {
const { headers: { authorization }} = request;
try {
const { webid: webId } = await this.verify(authorization as string);
const { webid: webId } = await this.verify(authorization!);
this.logger.info(`Verified WebID via Bearer access token: ${webId}`);
return { webId };
} catch (error: unknown) {

View File

@@ -45,7 +45,7 @@ export class DPoPWebIdExtractor extends CredentialsExtractor {
// and extract the WebID provided by the client
try {
const { webid: webId } = await this.verify(
authorization as string,
authorization!,
{
header: dpop as string,
method: method as RequestMethod,

View File

@@ -18,7 +18,7 @@ export class UnsecureWebIdExtractor extends CredentialsExtractor {
}
public async handle({ headers }: HttpRequest): Promise<Credentials> {
const webId = /^WebID\s+(.*)/u.exec(headers.authorization as string)![1];
const webId = /^WebID\s+(.*)/u.exec(headers.authorization!)![1];
this.logger.info(`Agent unsecurely claims to be ${webId}`);
return { webId };
}