feat: Export UnsecureConstantCredentialsExtractor.

This commit is contained in:
Ruben Verborgh 2021-01-15 20:19:11 +01:00
parent 7dcde1e0e3
commit 542901488f
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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