🔐 2FA: QCM
After a login answering 250 with totp: false. If totp is true: TOTP.
QCM: get the question
POST /connexion/doubleauth.awp?verbe=get&v=8.1.0
data={}
Response
{
"code": 200,
"message": "",
"data": {
"question": "Quel est le nom de votre animal ?", // The question, Base64
"propositions": [ "" ] // The possible answers, Base64
}
}
otherFailure: Any non-200 code is a failure (an expired temporary token gives a token-invalid code).
info
Send the temporary X-Token of the 250 response.
QCM: send the answer
Send the proposition back exactly as received (Base64).
POST /connexion/doubleauth.awp?verbe=post&v=8.1.0
data={
"choix": "Q2hhdA==" // One proposition, exactly as received (it is already Base64)
}
Response
{
"code": 200,
"message": "",
"data": {
"cn": "xxxx", // 2FA proof, part 1
"cv": "xxxx" // 2FA proof, part 2
}
}
500The question changed: Call get the question again.otherWrong answer / failure: Any other code is a failure.
🔁 Log in again
Login again after 2FA
{ "identifiant": "…", "motdepasse": "…", "isReLogin": false, "sesouvenirdemoi": true, "uuid": "…",
"cn": "<cn>", "cv": "<cv>",
"fa": [ { "cn": "<cn>", "cv": "<cv>", "uniq": false } ] // web app only, see below
}
- Mobile app:
cnandcvat the top level, nofa(always empty); it relies on the access token afterwards. - Web app: also keeps every pair in
fa(10 max, oldest dropped) and sends them all. cnends with the Base64 of{codeOgec}_{typeCompte}_{id}.uniq: true= single use, drop it after the next login.
warning
cn / cv skip 2FA for that account: treat them like a password.