Add custom select-authenticator

This commit is contained in:
Oliver Traber 2023-02-21 21:54:02 +01:00
parent 2e612fc2ad
commit 47b0436b14
Signed by: Bluemedia
GPG key ID: C0674B105057136C
13 changed files with 227 additions and 55 deletions

View file

@ -31,6 +31,19 @@ export type WebauthnAuthenticator = {
createdAt: string;
};
export type AuthenticationSelection = {
authExecId: string;
authenticationExecution: {
alternative: boolean;
enabled: boolean;
authenticator:
| "auth-otp-form"
| "webauthn-authenticator"
| "auth-recovery-authn-code-form";
priority: string;
};
};
export declare namespace KcContextBase {
export type Common = {
url: {
@ -327,13 +340,19 @@ export declare namespace KcContextBase {
};
export type SAMLPostForm = Common & {
pageId: "saml-post-form.ftl"
pageId: "saml-post-form.ftl";
samlPost: {
url: string;
SAMLRequest?: string;
SAMLResponse?: string;
relayState?: string;
}
};
};
export type SelectAuthenticator = Common & {
auth: {
authenticationSelections: Array<AuthenticationSelection>;
};
};
}