feat: Full rework of account management

Complete rewrite of the account management and related systems.
Makes the architecture more modular,
allowing for easier extensions and configurations.
This commit is contained in:
Joachim Van Herwegen
2022-03-16 10:12:13 +01:00
parent ade977bb4f
commit a47f5236ef
366 changed files with 12345 additions and 5111 deletions

View File

@@ -0,0 +1,16 @@
import { ControlHandler } from './ControlHandler';
import type { Json } from './InteractionUtil';
import type { JsonInteractionHandlerInput } from './JsonInteractionHandler';
/**
* A {@link ControlHandler} that only returns results if there is an active OIDC interaction.
*/
export class OidcControlHandler extends ControlHandler {
protected async generateControls(input: JsonInteractionHandlerInput): Promise<NodeJS.Dict<Json>> {
if (!input.oidcInteraction) {
return {};
}
return super.generateControls(input);
}
}