Add support for webauthn-authenticate.ftl

Wow! This one sucks. Certainly more in need of review compared to
`login-username.ftl` and `login-password.ftl`...
This commit is contained in:
Mary Strodl
2022-10-05 02:40:00 -04:00
parent 0c155a7a2e
commit 4b3ae58ea7
8 changed files with 283 additions and 0 deletions

View File

@ -393,6 +393,27 @@ export const kcContextMocks: KcContextBase[] = [
},
"login": {}
}),
id<KcContextBase.WebauthnAuthenticate>({
...kcContextCommonMock,
"pageId": "webauthn-authenticate.ftl",
"url": loginUrl,
"authenticators": {
"authenticators": []
},
"realm": {
...kcContextCommonMock.realm
},
"challenge": "",
"userVerification": "not specified",
"rpId": "",
"createTimeout": "0",
"isUserIdentified": "false",
"shouldDisplayAuthenticators": false,
"social": {
"displayInfo": false
},
"login": {}
}),
id<KcContextBase.LoginUpdatePassword>({
...kcContextCommonMock,
"pageId": "login-update-password.ftl",