Meta에서 이 버그를 이전에 발견한 적이 있습니다. 하지만 최신 업그레이드 후 제 배포 환경에서도 나타났습니다. 로그인 버튼을 클릭하면 “다시 만나서 반가워 ” 모달이 표시되지만, 즉시 “죄송합니다. 오류가 발생했습니다” 모달에 가려집니다. 확인 버튼을 누르면 오류 모달이 사라지고, 인증을 정상적으로 계속 진행할 수 있습니다.
콘솔에 오류 로그가 있습니다:
ajax-error.js:9:12
l ajax-error.js:9
p ajax-error.js:95
passkeyLogin login.js:147
2개의 좋아요
Debian 12에서 64비트 Firefox 115.7.0esr를 사용 중입니다.
Discourse v3.3.0.beta1-dev — Commits · discourse/discourse · GitHub — Ember v5.5.0
1개의 좋아요
Moin
2월 1, 2024, 12:41오전
4
2개의 좋아요
여기서 도입된 회귀(regression)입니다: FEATURE: Allow users to confirm session with passkeys (#24337) · discourse/discourse@c6ead3f · GitHub
) {
if (!isWebauthnSupported()) {
return errorCallback(I18n.t("login.security_key_support_missing_error"));
}
// we need to check isConditionalMediationAvailable for Firefox
// without it, Firefox will throw console errors
// We cannot do a general check because iOS Safari and Chrome in Selenium quietly support the feature
// but they do not support the PublicKeyCredential.isConditionalMediationAvailable() method
if (mediation === "conditional" && isFirefox) {
const isCMA = await PublicKeyCredential.isConditionalMediationAvailable();
if (!isCMA) {
return;
}
}
try {
const resp = await ajax("/session/passkey/challenge.json");
const credential = await navigator.credentials.get({
publicKey: {
아래의 try{} 블록 안으로 코드를 이동해야 한다고 생각합니다. 그렇지 않으면 에러가 콘솔 대신 UI를 통해 표시됩니다.
userHandle: bufferToBase64(credential.response.userHandle),
};
} catch (error) {
if (error.name === "AbortError") {
// no need to show an error when the cancelling a pending ceremony
// this happens when switching from the conditional method (username input autofill)
// to the optional method (login button) or vice versa
return null;
}
if (mediation === "conditional") {
// The conditional method gets triggered in the background
// it's not helpful to show errors for it in the UI
// eslint-disable-next-line no-console
console.error(error);
return null;
}
if (error.name === "NotAllowedError") {
return errorCallback(I18n.t("login.security_key_not_allowed_error"));
} else if (error.name === "SecurityError") {
4개의 좋아요
pmusaraj
(Penar Musaraj)
2월 2, 2024, 9:40오후
7
3개의 좋아요
pmusaraj
(Penar Musaraj)
에 닫힘
2월 6, 2024, 10:41오후
9
이 주제는 4일 후 자동으로 닫혔습니다. 더 이상 답변을 남길 수 없습니다.