Files
CommunitySolidServer/src/identity/interaction/OidcControlHandler.ts
Joachim Van Herwegen a47f5236ef 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.
2023-10-06 11:04:40 +02:00

17 lines
542 B
TypeScript

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);
}
}