Skip to main content
Version: 8.1.0

🔐 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
}
}
  • other Failure: 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
}
}
  • 500 The question changed: Call get the question again.
  • other Wrong 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: cn and cv at the top level, no fa (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.
  • cn ends 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.