anastasis-core: towards supporting iban auth
This commit is contained in:
parent
dc1fce2277
commit
e627f65f3c
@ -930,6 +930,20 @@ async function requestTruth(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (resp.status === HttpStatusCode.Accepted) {
|
||||||
|
const body = await resp.json();
|
||||||
|
logger.info(`got body ${j2s(body)}`);
|
||||||
|
if (body.method === "iban") {
|
||||||
|
// FIXME:
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
code: TalerErrorCode.ANASTASIS_TRUTH_CHALLENGE_FAILED,
|
||||||
|
hint: "unknown external authentication method",
|
||||||
|
http_status: resp.status,
|
||||||
|
} as ReducerStateError;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
code: TalerErrorCode.ANASTASIS_TRUTH_CHALLENGE_FAILED,
|
code: TalerErrorCode.ANASTASIS_TRUTH_CHALLENGE_FAILED,
|
||||||
hint: "got unexpected /truth/ response status",
|
hint: "got unexpected /truth/ response status",
|
||||||
|
Loading…
Reference in New Issue
Block a user