Skip to main content
Version: 8.1.0

๐Ÿ“ฑ QR code & SSO

Generate a QR login tokenโ€‹

{typeSegment}: see Account types.

POST /{typeSegment}/{id}/grant/QRCONNEXION.awp?verbe=get&v=8.1.0
data={}

โš ๏ธ Not used by the mobile app.

Response
{
"code": 200,
"message": "",
"data": {
"at": "a1b2c3d4" // Hex token
}
}

Log in from a QR codeโ€‹

Scan https://www.ecoledirecte.com/login?at=<hex>. The deep link login?ta=<token> does the same with isReLogin: true.

POST /login.awp?v=8.1.0
X-GTK: <GTK cookie value>

data={
"accessTokenQR": "",
"identifiant": "jdupont", // ""
"motdepasse": "my_password", // ""
"isReLogin": false, // true for the ta= deep link
"sesouvenirdemoi": true,
"uuid": "5c944aac-4d7c-44a1-b240-a471eee3ed28",
"fa": [] // []
}

Log in with an external providerโ€‹

App route oauth/:provider/:token. The body depends on the provider.

POST /loginexterne.awp?verbe=post&v=8.1.0
data={
"cToken": "xxxxxxxx", // only for ssoCharly. Provider token
"aToken": "xxxxxxxx", // only for supervision. Provider token
"i": "1", // only for supervision (optional). Id
"ssoToken": "xxxxxxxx", // only for sso. Provider token
"idSSOToken": "xxxxxxxx", // only for sso. Token id
"identifiant": "jdupont", // only for sso (optional). SSO identifiant
"password": "my_password", // only for sso (optional). SSO password
"ecToken": "xxxxxxxx", // only for educonnect. EduConnect token
"lToken": "xxxxxxxx" // only for externalLink. Link token
}
  • other Failure: Any other code is a failure.

Start an EduConnect loginโ€‹

Open action in a browser with SAMLRequest (and RelayState). The deep-link whitelist only contains login.

POST /educonnect.awp?verbe=post&v=8.1.0
data={}

Accounts: Student (E), Family (1ยท2).

Response
{
"code": 200,
"message": "",
"data": {
"action": "https://educonnect.education.gouv.fr/idp/profile/SAML2/POST/SSO", // URL to open
"samlRequest": "PHNhbWxwOkF1dGhuUmVxdWVzdC4uLg==", // Value of the SAMLRequest parameter
"relayState": "xxxxxxxx" // optional. Value of RelayState, if any
}
}
  • 235 Error: message explains.