From 542901488fb043d47575206f87d0106f656e0974 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Fri, 15 Jan 2021 20:19:11 +0100 Subject: [PATCH] feat: Export UnsecureConstantCredentialsExtractor. --- src/authentication/UnsecureConstantCredentialsExtractor.ts | 2 ++ src/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/authentication/UnsecureConstantCredentialsExtractor.ts b/src/authentication/UnsecureConstantCredentialsExtractor.ts index 0911a7386a..615bea5362 100644 --- a/src/authentication/UnsecureConstantCredentialsExtractor.ts +++ b/src/authentication/UnsecureConstantCredentialsExtractor.ts @@ -10,6 +10,8 @@ export class UnsecureConstantCredentialsExtractor extends CredentialsExtractor { private readonly agent: Credentials; private readonly logger = getLoggerFor(this); + public constructor(agent: string); + public constructor(agent: Credentials); public constructor(agent: string | Credentials) { super(); this.agent = typeof agent === 'string' ? { webId: agent } : agent; diff --git a/src/index.ts b/src/index.ts index 6c3af7e409..92b17fdded 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,6 +4,7 @@ export * from './authentication/Credentials'; export * from './authentication/CredentialsExtractor'; export * from './authentication/DPoPWebIdExtractor'; export * from './authentication/EmptyCredentialsExtractor'; +export * from './authentication/UnsecureConstantCredentialsExtractor'; export * from './authentication/UnsecureWebIdExtractor'; // Authorization