@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
22 lines (21 loc) • 1.08 kB
TypeScript
import { interactionPolicy } from 'oidc-provider';
import type { CookieStore } from '../interaction/account/util/CookieStore';
import type { WebIdStore } from '../interaction/webid/util/WebIdStore';
import { PromptFactory } from './PromptFactory';
/**
* Creates the prompt necessary to ensure a user is logged in with their account when doing an OIDC interaction.
* This is done by checking the presence of the account-related cookie.
*
* Adds a Check to the login policy that verifies if the stored accountId, which corresponds to the chosen WebID,
* belongs to the currently logged in account.
*/
export declare class AccountPromptFactory extends PromptFactory {
protected readonly logger: import("global-logger-factory").Logger<unknown>;
private readonly webIdStore;
private readonly cookieStore;
private readonly cookieName;
constructor(webIdStore: WebIdStore, cookieStore: CookieStore, cookieName: string);
handle(policy: interactionPolicy.DefaultPolicy): Promise<void>;
private addAccountPrompt;
private addWebIdVerificationPrompt;
}