🇫🇷 Français | 🇬🇧 English
L’Identité Numérique La Poste is based on the OpenID Connect (OIDC) protocol.
This standard allows a partner service to:
The partner does not manage authentication directly.
👉 Instead, it redirects the user to LINLP, which:
The standard flow is as follows:
| Endpoint | Description |
|---|---|
| /authorize | User authentication |
| /token | Token retrieval |
| /userinfo | User data retrieval |
The partner redirects the user to LINLP.
Main parameters:
Example:
GET /authorize?response_type=code &client_id=XXX &redirect_uri=https://myservice.com/callback &scope=openid+profile+email
👉 The user is then authenticated through the mobile application.
After authentication:
Example:
https://myservice.com/callback?code=ABC123
⚠️ This code is temporary and single-use.
The partner backend exchanges the code for tokens.
POST /token
Parameters:
👉 This step must be performed server-side.
LINLP returns:
The partner retrieves user data:
GET /userinfo Authorization: Bearer access_token
👉 Returned data depends on the requested scopes.
The id_token contains:
👉 It must be verified using the LINLP public key.
The access_token allows:
⚠️ Backend required Never expose `client_secret` on the frontend.
⚠️ No iframe The `/authorize` page must be called through redirection.
⚠️ Token validation Always verify the JWT signature.
⚠️ Secure storage Tokens must be securely stored.
| Environment | URL |
|---|---|
| Sandbox | https://authent.pprod.lidentitenumerique.laposte.fr |
| Production | https://authent.lidentitenumerique.laposte.fr |
👉 Implement the full flow: