On this page
Login with RDCPASS
OpenID Connect — let a citizen sign in to your application with their existing RDCPASS identity.
Endpoints
| GET | /v1/oidc/authorize | Step 1 — redirect the citizen here to authenticate and consent. |
|---|---|---|
| POST | /v1/oidc/token | Step 3 — exchange an authorization code for tokens. |
| GET | /v1/oidc/userinfo | Read the signed-in citizen’s profile with an access token. |
| GET | /v1/oidc/jwks.json | Public keys for verifying an id_token’s signature. No authentication required. |
Why this looks different from every other endpoint
/v1/oidc/authorize is a browser redirect and carries no application secret at all — it's protected by the redirect_uri allowlist, state, and mandatory PKCE. /v1/oidc/token and /v1/oidc/userinfo still require your application's mTLS client certificate, the same one used everywhere else — just not HMAC signing or payload encryption.Instead of building your own login form and calling KYC Validation yourself, redirect the citizen to RDCPASS. They approve your request on their own phone — a push notification, a review of exactly the KYC scopes you're asking for, and a face-recognition check, never a password — and RDCPASS redirects them back with proof of who they are: an id_token, signed and ready to verify, carrying the basic KYC claims and every additional KYC scope the citizen approved.
Register your redirect URIs first
Before any of this works, an Owner or Administrator of your organization must register the exact redirect_uri value(s) your application will use, from the console. /v1/oidc/authorize rejects any request whose redirect_uri isn't an exact, byte-for-byte match against one already on file — no wildcards, no partial matches. This is what stops a stolen client_id from being used to redirect a citizen's login to an attacker-controlled URL.
Contract to be confirmed by the API team.
How it works
- The citizen taps “Login with RDCPASS” — Your application redirects them to a secure RDCPASS page. They never type their identity details into your app.
- They approve on their phone — The RDCPASS app shows a notification with your company’s verified name and the data you are requesting.
- They confirm with a face match — A short face check against their enrolled RDCPASS identity confirms it is really them.
- They return to your application, signed in — You receive signed proof of who they are, with basic KYC and each additional scope they approved.
- Passwordless: a push notification and a face match
- The citizen consents to every piece of data shared
- Built on OpenID Connect
How it works
- Redirect to the authorization endpoint — Send the citizen’s browser to
/v1/oidc/authorizewith a fresh PKCE challenge and state value. - Citizen approves on their phone — RDCPASS pushes a notification to their enrolled device. They review exactly the scopes you’re requesting and confirm with a face-recognition check — nothing is shared silently, and no password is ever involved.
- RDCPASS redirects back to you — Your
redirect_urireceives an authorization code (or an error) as a query parameter, plus your original state value unchanged. - Exchange the code for tokens — Your server calls
/v1/oidc/tokendirectly (never the browser) to trade the one-time code for an access token and id_token.
Step 1 — authorization request
Redirect the citizen’s browser to a URL shaped like this:
https://api.rdcpass.cd/v1/oidc/authorize
?response_type=code
&client_id=app_8f2a1c0e9b
&redirect_uri=https%3A%2F%2Fyourapp.example.com%2Fcallback
&scope=openid%20profile%20rdcpass%3Akyc.addresses%20rdcpass%3Akyc.phone_numbers%20rdcpass%3Akyc.emails%20rdcpass%3Akyc.documents.primary
&state=af0ifjsldkj
&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
&code_challenge_method=S256Query parameters:
| Parameter | Description |
|---|---|
response_type | Must be exactly "code" — RDCPASS supports the authorization code flow only, not implicit or hybrid. |
client_id | Your application’s key ID. |
redirect_uri | Where to send the citizen back. Must exactly match a URI already registered for this application. |
scope | Space-separated scopes: "openid" (required), "profile" for the basic KYC claims, and "rdcpass:<scope>" for each additional KYC scope granted to your application — e.g. "openid profile rdcpass:kyc.addresses rdcpass:kyc.phone_numbers". See Scopes and claims below. |
state | An opaque value your application generates. RDCPASS returns it unchanged on the callback — verify it matches what you sent before trusting the response, as CSRF protection. |
code_challenge | base64url(SHA-256(code_verifier)) — see the PKCE callout below. |
code_challenge_method | Must be exactly "S256". The plaintext "plain" method is not supported. |
nonce | Optional. Echoed back inside the id_token unchanged — binds the token to this specific authorization request. |
PKCE is mandatory, not optional
How citizens approve: push notification and face recognition
Everything below happens on RDCPASS’s own hosted page, reached by the Step 1 redirect — none of it is an API your application calls. It’s documented here so you can set the right expectations for your own users and support team.
- The citizen identifies themselves on RDCPASS’s page — their registered phone number or national identity document number. This never passes through your application; RDCPASS’s hosted page is the only place it’s entered.
- RDCPASS immediately pushes a notification to every device where the citizen has the RDCPASS app installed and enrolled. It names your application by its verified display name — resolved from your client_id, never something your request can set — and lists exactly the scopes you’re requesting, in plain language — no more, no less.
- Opening the notification shows the same consent screen in full inside the app — every requested scope, with sensitive and biometric scopes flagged — and Continue and Deny. The citizen approves or denies the request as a whole.
- Continue starts a face-recognition check, matched server-side against the citizen’s enrolled RDCPASS biometric record — the same enrollment used elsewhere on the platform, not just whatever unlocks their phone.
- The citizen has 60 seconds total, starting from the Step 1 redirect, to complete all of the above. Declining, failing the face match, or simply not responding in time all end the same way — see
access_deniedbelow.
A citizen with no RDCPASS app installed, or no enrolled biometric, is guided to set both up on RDCPASS’s own page before they can continue — there is no password fallback.
What your application sees, what the console logs
access_denied. Treat every access_denied the same way: offer to start again. The console’s log, for its part, records consent_denied or consent_abandoned.Step 2 — the callback
On success, RDCPASS redirects to your redirect_uri with a code:
https://yourapp.example.com/callback
?code=auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d
&state=af0ifjsldkjIf the citizen declines, or something goes wrong before a code can be issued, you get an error on the same redirect_uri instead — never a code and an error together:
https://yourapp.example.com/callback
?error=access_denied
&error_description=The citizen declined to authorize your application
&state=af0ifjsldkjSee OAuth error codes below for every value error can take.
Step 3 — exchange the code for tokens
From your server (never from the browser — this call requires your application’s mTLS client certificate), exchange the code:
cURL
curl https://api.rdcpass.cd/v1/oidc/token \
-X POST \
--cert your-app-client-cert.pem \
--key your-app-client-key.pem \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=authorization_code" \
-d "code=auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d" \
-d "redirect_uri=https://yourapp.example.com/callback" \
-d "client_id=app_8f2a1c0e9b" \
-d "code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"Node.js
import https from 'node:https'
import fs from 'node:fs'
const agent = new https.Agent({
cert: fs.readFileSync('your-app-client-cert.pem'),
key: fs.readFileSync('your-app-client-key.pem'),
})
const params = new URLSearchParams({
grant_type: 'authorization_code',
code: 'auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d',
redirect_uri: 'https://yourapp.example.com/callback',
client_id: 'app_8f2a1c0e9b',
code_verifier: 'dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk',
})
const res = await fetch('https://api.rdcpass.cd/v1/oidc/token', {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: params,
agent,
})
const tokens = await res.json()
console.log(tokens.id_token)Python
import requests
response = requests.post(
"https://api.rdcpass.cd/v1/oidc/token",
cert=("your-app-client-cert.pem", "your-app-client-key.pem"),
data={
"grant_type": "authorization_code",
"code": "auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d",
"redirect_uri": "https://yourapp.example.com/callback",
"client_id": "app_8f2a1c0e9b",
"code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
},
)
tokens = response.json()
print(tokens["id_token"])Go
package main
import (
"crypto/tls"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
func main() {
cert, _ := tls.LoadX509KeyPair("your-app-client-cert.pem", "your-app-client-key.pem")
client := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{Certificates: []tls.Certificate{cert}},
},
}
form := url.Values{}
form.Set("grant_type", "authorization_code")
form.Set("code", "auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d")
form.Set("redirect_uri", "https://yourapp.example.com/callback")
form.Set("client_id", "app_8f2a1c0e9b")
form.Set("code_verifier", "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk")
resp, err := client.Post(
"https://api.rdcpass.cd/v1/oidc/token",
"application/x-www-form-urlencoded",
strings.NewReader(form.Encode()),
)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var tokens struct {
IDToken string `json:"id_token"`
}
json.NewDecoder(resp.Body).Decode(&tokens)
fmt.Println(tokens.IDToken)
}Java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
import javax.net.ssl.SSLContext;
// SSLContext configured with your application's client certificate —
// see your HTTP client's mTLS setup docs; omitted here for brevity.
SSLContext sslContext = loadClientCertificateContext(
"your-app-client-cert.pem", "your-app-client-key.pem");
var client = HttpClient.newBuilder().sslContext(sslContext).build();
var form = "grant_type=authorization_code"
+ "&code=auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d"
+ "&redirect_uri=https://yourapp.example.com/callback"
+ "&client_id=app_8f2a1c0e9b"
+ "&code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk";
var request = HttpRequest.newBuilder()
.uri(URI.create("https://api.rdcpass.cd/v1/oidc/token"))
.header("Content-Type", "application/x-www-form-urlencoded")
.POST(BodyPublishers.ofString(form))
.build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Rust
use std::fs;
#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
let cert = fs::read("your-app-client-cert.pem").unwrap();
let key = fs::read("your-app-client-key.pem").unwrap();
let identity = reqwest::Identity::from_pem(&[cert, key].concat()).unwrap();
let client = reqwest::Client::builder()
.identity(identity)
.build()?;
let params = [
("grant_type", "authorization_code"),
("code", "auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d"),
("redirect_uri", "https://yourapp.example.com/callback"),
("client_id", "app_8f2a1c0e9b"),
("code_verifier", "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"),
];
let response = client
.post("https://api.rdcpass.cd/v1/oidc/token")
.form(¶ms)
.send()
.await?;
let tokens: serde_json::Value = response.json().await?;
println!("{}", tokens["id_token"]);
Ok(())
}PHP
<?php
$body = http_build_query([
'grant_type' => 'authorization_code',
'code' => 'auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d',
'redirect_uri' => 'https://yourapp.example.com/callback',
'client_id' => 'app_8f2a1c0e9b',
'code_verifier' => 'dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk',
]);
$ch = curl_init('https://api.rdcpass.cd/v1/oidc/token');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $body,
CURLOPT_SSLCERT => 'your-app-client-cert.pem',
CURLOPT_SSLKEY => 'your-app-client-key.pem',
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
curl_close($ch);
$tokens = json_decode($response, true);
echo $tokens['id_token'];C#
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
using System.Text.Json;
var clientCert = X509Certificate2.CreateFromPemFile(
"your-app-client-cert.pem", "your-app-client-key.pem");
var handler = new HttpClientHandler();
handler.ClientCertificates.Add(clientCert);
var client = new HttpClient(handler);
var form = new FormUrlEncodedContent(new Dictionary<string, string>
{
["grant_type"] = "authorization_code",
["code"] = "auth_9f2ac3d0e1b74a2f9c7d5b3a1e6f8c0d",
["redirect_uri"] = "https://yourapp.example.com/callback",
["client_id"] = "app_8f2a1c0e9b",
["code_verifier"] = "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
});
var response = await client.PostAsync("https://api.rdcpass.cd/v1/oidc/token", form);
var tokens = await response.Content.ReadFromJsonAsync<JsonElement>();
Console.WriteLine(tokens.GetProperty("id_token").GetString());Contract to be confirmed by the API team.
| Parameter | Description |
|---|---|
grant_type | Must be exactly "authorization_code". |
code | The code from the callback. Single-use — a second exchange attempt with the same code fails with invalid_grant, and RDCPASS treats reuse as a signal the code may have been intercepted. |
redirect_uri | Must exactly match the redirect_uri used in the authorization request. |
client_id | Your application’s key ID — same value as the authorize request. |
code_verifier | The original random string your code_challenge was derived from. RDCPASS re-derives the challenge and compares. |
A successful exchange returns:
{
"access_token": "rdcp_at_9f2ac3d0e1b74a2f8c0d5b3a1e6f8c0d",
"id_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FwaS5yZGNwYXNzLmNkIiwic3ViIjoiY2l0XzdmMWUyYTljNGIzZDhmNjAiLCJhdWQiOiJhcHBfOGYyYTFjMGU5YiIsImV4cCI6MTczNTY5MzIwMCwiaWF0IjoxNzM1Njg5NjAwfQ.signature",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "openid profile rdcpass:kyc.addresses rdcpass:kyc.phone_numbers rdcpass:kyc.emails rdcpass:kyc.documents.primary"
}| Parameter | Type | Description |
|---|---|---|
access_token | string | Opaque bearer token for calling /v1/oidc/userinfo. Not a JWT — don’t try to decode it. |
id_token | string (JWT) | A signed JWT containing the citizen’s identity claims. See ID token claims below. |
token_type | string | Always "Bearer". |
expires_in | number | Access token lifetime, in seconds. |
scope | string | The scopes granted — identical to the scopes shown on the consent screen, since the citizen approves the request as a whole. A granted scope with no data on record is omitted from the claims rather than returned empty. |
ID token claims
Decode and verify the id_token’s signature (see Verifying the id_token below) before trusting any claim inside it. Which claims appear depends on the scopes granted — this example was issued for "openid profile rdcpass:kyc.addresses rdcpass:kyc.phone_numbers rdcpass:kyc.emails rdcpass:kyc.documents.primary". File-bearing claims such as rdcpass:documents.primary are delivered by userinfo only (see below).
{
"iss": "https://api.rdcpass.cd",
"sub": "cit_7f1e2a9c4b3d8f60",
"aud": "app_8f2a1c0e9b",
"exp": 1735693200,
"iat": 1735689600,
"nonce": "n-0S6_WzA2Mj",
"rdcpass_id": "COD-2103-0214-4937",
"full_name": "Kabeya Mwamba Tshisekedi",
"given_name": "Kabeya",
"family_name": "Tshisekedi",
"birthdate": "1988-04-12",
"age": 38,
"gender": "male",
"nationality": "COD",
"account_status": "active",
"certified": true,
"level_of_assurance": "LOA3",
"account_created_at": "2025-03-14T09:22:41Z",
"rdcpass:addresses": [
{
"province": "Kinshasa",
"city": "Kinshasa",
"commune": "Gombe",
"quartier": "Batetela",
"avenue": "Avenue du Commerce",
"number": "12",
"is_primary": true,
"verified_at": "2025-03-14T09:40:12Z"
}
],
"rdcpass:phone_numbers": [
{ "number": "+243812345678", "operator": "Vodacom", "is_primary": true, "verified": true }
],
"rdcpass:emails": [
{ "address": "kabeya.tshisekedi@example.cd", "is_primary": true, "verified": true }
]
}| Parameter | Type | Description |
|---|---|---|
iss | string | Always "https://api.rdcpass.cd". |
sub | string | A stable, per-citizen, per-application identifier. Deliberately opaque — it is not the citizen’s national identity document number, and does not change if that number is ever reissued. |
aud | string | Your application’s key ID — always verify this matches your own client_id before trusting the token. |
exp | number | Unix timestamp the token expires at. |
iat | number | Unix timestamp the token was issued at. |
nonce | string | Echoes the nonce from the authorization request, if you sent one. Verify it matches. |
rdcpass_id | string | The citizen’s RDCPASS ID, format COD-XXXX-XXXX-XXXX. Requires "profile". |
full_name | string | Full legal name as recorded by RDCPASS. Requires "profile". |
given_name | string | First name (basic KYC first_name). Requires "profile". |
family_name | string | Last name (basic KYC last_name). Requires "profile". |
birthdate | string | Date of birth, YYYY-MM-DD. Requires "profile". |
age | integer | Age in whole years at issuance. Requires "profile". |
gender | string | "male" or "female". Requires "profile". |
nationality | string | ISO 3166-1 alpha-3 code, e.g. "COD". Requires "profile". |
account_status | string | "active", "suspended", "paused" or "deleted". Requires "profile". |
certified | boolean | true when the RDCPASS account is certified. Requires "profile". |
level_of_assurance | string | "LOA2", "LOA3" or "LOA4". Requires "profile". |
account_created_at | string | When the RDCPASS account was created (RFC 3339). Requires "profile". |
rdcpass:* | object | array | string | One claim per additional KYC scope granted — see Scopes and claims below. |
sub is a pairwise pseudonym, not the RDCPASS ID
Verifying the id_token
The id_token is a JWT signed with RS256. Fetch RDCPASS’s public keys from /v1/oidc/jwks.json — no authentication required — and verify the signature before trusting anything inside the token.
{
"keys": [
{
"kty": "RSA",
"use": "sig",
"alg": "RS256",
"kid": "2026-08-rsa-1",
"n": "sXchd3fN0Vy0zGsFdX1...",
"e": "AQAB"
}
]
}- Fetch and cache
/v1/oidc/jwks.json(keys rotate infrequently; respect standard HTTP caching headers rather than fetching on every request). - Verify the signature using the key matching the token’s "kid" header.
- Check iss equals "https://api.rdcpass.cd".
- Check aud equals your own client_id.
- Check exp hasn’t passed.
- If you sent a nonce, check it matches.
Standard JWT/JOSE libraries in every language handle all of this — jose (Node.js/Python), golang-jwt (Go), nimbus-jose-jwt (Java), jsonwebtoken (Rust’s jsonwebtoken crate), firebase/php-jwt (PHP), and System.IdentityModel.Tokens.Jwt (C#) all support fetching a JWKS URL and verifying RS256 directly.
Reading the profile again — /v1/oidc/userinfo
Call this endpoint with the access token as a bearer credential to read the full set of claims for the granted scopes — including the file-bearing claims (documents, biometrics) that are never embedded in the id_token. Document images and biometric files are returned as signed_url file objects, valid for 5 minutes: fetch them server-side and never store the URL.
GET /v1/oidc/userinfo HTTP/1.1
Host: api.rdcpass.cd
Authorization: Bearer rdcp_at_9f2ac3d0e1b74a2f8c0d5b3a1e6f8c0d{
"sub": "cit_7f1e2a9c4b3d8f60",
"rdcpass_id": "COD-2103-0214-4937",
"full_name": "Kabeya Mwamba Tshisekedi",
"given_name": "Kabeya",
"family_name": "Tshisekedi",
"birthdate": "1988-04-12",
"age": 38,
"gender": "male",
"nationality": "COD",
"account_status": "active",
"certified": true,
"level_of_assurance": "LOA3",
"account_created_at": "2025-03-14T09:22:41Z",
"rdcpass:addresses": [
{
"province": "Kinshasa",
"city": "Kinshasa",
"commune": "Gombe",
"quartier": "Batetela",
"avenue": "Avenue du Commerce",
"number": "12",
"is_primary": true,
"verified_at": "2025-03-14T09:40:12Z"
}
],
"rdcpass:phone_numbers": [
{ "number": "+243812345678", "operator": "Vodacom", "is_primary": true, "verified": true }
],
"rdcpass:emails": [
{ "address": "kabeya.tshisekedi@example.cd", "is_primary": true, "verified": true }
],
"rdcpass:documents.primary": {
"type": "passport",
"number": "OB1234567",
"issued_at": "2022-06-01",
"expires_at": "2027-05-31",
"issuing_authority": "Ministère des Affaires étrangères",
"status": "valid",
"image": {
"content_type": "image/jpeg",
"url": "https://files.rdcpass.cd/d/9f2c41e7ab03?sig=Q2hhbmdlTWU",
"expires_at": "2026-09-26T10:20:02Z"
}
}
}Scopes and claims
Login with RDCPASS uses the same KYC scopes as every other RDCPASS service. openid is always required; profile returns the basic KYC claims; each additional scope is requested as rdcpass:<scope> and returns one claim named after it. See KYC scopes & subscriptions for what each scope contains.
You can only request scopes granted to your application
invalid_scope, before the citizen is contacted. The consent screen shows exactly the scopes in your request, so ask only for what you need: every extra scope is one more line the citizen must accept.| Scope | Claims | Tier |
|---|---|---|
openid | sub, iss, aud, exp, iat, nonce | Protocol |
profile | rdcpass_id, full_name, given_name, family_name, birthdate, age, gender, nationality, account_status, certified, level_of_assurance, account_created_at | Basic KYC |
rdcpass:kyc.documents.primary | rdcpass:documents.primary (userinfo only) | Standard |
rdcpass:kyc.documents.all | rdcpass:documents.all (userinfo only) | Standard |
rdcpass:kyc.addresses | rdcpass:addresses | Standard |
rdcpass:kyc.emails | rdcpass:emails | Standard |
rdcpass:kyc.phone_numbers | rdcpass:phone_numbers | Standard |
rdcpass:kyc.professions | rdcpass:professions | Standard |
rdcpass:kyc.place_of_birth | rdcpass:place_of_birth | Standard |
rdcpass:kyc.marital_status | rdcpass:marital_status | Standard |
rdcpass:kyc.languages | rdcpass:languages | Standard |
rdcpass:kyc.religion | rdcpass:religion | Sensitive |
rdcpass:kyc.ethnicity | rdcpass:ethnicity | Sensitive |
rdcpass:kyc.parentsTo be confirmed | rdcpass:parents | Standard |
rdcpass:kyc.biometrics.selfie | rdcpass:biometrics.selfie (userinfo only) | Biometric |
rdcpass:kyc.biometrics.fingerprint | rdcpass:biometrics.fingerprint (userinfo only) | Biometric |
rdcpass:kyc.biometrics.iris | rdcpass:biometrics.iris (userinfo only) | Biometric |
rdcpass:credit.score | rdcpass:credit.consent | Consent |
kyc.parents is not in the console catalogue, which has 14 additional scopes: to be confirmed.
Credit-scoring consent — rdcpass:credit.score
Requesting rdcpass:credit.score asks the citizen to consent, on the same consent screen, to a credit score being computed about them. When approved, the id_token and userinfo carry a rdcpass:credit.consent claim; pass its value as the consent field of Credit Scoring. The consent is scoped to your application and expires at expires_at.
"rdcpass:credit.consent": {
"method": "rdcpass_app",
"consent_id": "cns_5e8a2d71c4",
"expires_at": "2026-10-26T10:15:00Z"
}OAuth error codes
These four endpoints use standard OAuth 2.0 error codes and shapes — NOT the error JSON body the rest of the API returns. An authorize-step error arrives as redirect query parameters (see Step 2 above); a token-step error arrives as a JSON body with the same field names, but returned with a 400 status instead of a redirect.
| error | Cause |
|---|---|
invalid_request | A required parameter is missing, or a parameter has an invalid value — e.g. code_challenge_method wasn’t "S256". |
invalid_client | client_id doesn’t match a known application. |
invalid_grant | The code is expired, already used, or the code_verifier doesn’t match the code_challenge from the authorize request. |
unauthorized_client | Login with RDCPASS isn’t enabled on this application. An Owner or Administrator can enable the service on the application in the console. |
access_denied | The citizen declined, failed the face-recognition check, or didn’t respond within 60 seconds — RDCPASS doesn’t distinguish which. Authorize-step only. |
unsupported_response_type | response_type wasn’t "code". Authorize-step only. |
invalid_scope | A requested scope doesn’t exist, isn’t granted to this application (not subscribed by your organization or not selected on the application), or "openid" was omitted. Authorize-step only — the citizen is never contacted. |
server_error | An internal error on RDCPASS’s side. Safe to retry. |
Capabilities
- No passwords at all — Sign-in uses the citizen’s enrolled phone and their face. There is no password fallback.
- Verified company name — The consent screen shows your organization’s name as confirmed by RDCPASS, so citizens know who is asking.
- All-or-nothing consent — The citizen sees every requested scope, with sensitive data flagged, and approves or declines the request as a whole.
- Private identifier per application — Each application gets its own stable identifier for a citizen. Users cannot be tracked from one service to another.
- Standard integration — OpenID Connect with mandatory PKCE, so common login libraries work without changes.
- Credit-scoring consent — On the same screen, you can ask the citizen to consent to a credit score for use with Credit Scoring.
Trust & privacy
A declined request, a failed face match and a timeout all look the same to you, so you learn nothing about what the citizen did.
You can request only the scopes your organization subscribes to and your application has selected. Sensitive or biometric scopes require enhanced due diligence.
Frequently asked questions
What if a citizen does not have the RDCPASS app?
The RDCPASS page guides them through installing the app and enrolling their face before they continue. There is no password option.
Why does a failed sign-in never say what happened?
A declined request, a failed face match and a timeout all return the same “access denied” outcome, so your application learns nothing the citizen did not choose to share. Offer them the option to try again.
Do I receive the citizen’s national ID number?
Not through the sign-in identifier, which is private to your application. Their RDCPASS ID comes with basic KYC. You get a verified document number only if you request the documents scope and the citizen approves it.
How long does the citizen have to approve?
The notification, consent and face match must all be completed within 60 seconds. After that the request ends, and the citizen can start again.
Pricing
Billed per monthly active user.
Each additional scope the citizen consents to adds a small surcharge. Requests rejected with an error are never billed, and the test environment is always free.
Where it’s used
Technology & platforms
With RDCPASS, users sign up by confirming on their own phone, and your team can check individual sellers and their companies against the national registers.
- Account recovery tied to the real holder
- Account recovery — When someone says they have lost access, ask them to sign in again with RDCPASS. The account goes back to its real holder and nobody else.
How long does it take to add Login with RDCPASS?
It follows the OpenID Connect standard, so most platforms can reuse the libraries they already have. You can build and test the whole flow in the test environment at no cost.
Users give consent on their own phone and decide which details your platform receives.
Login with RDCPASS is built on OpenID Connect and plugs into the sign-in stack you already run.
Social media & international digital companies
Users give consent on their own phone and decide which details reach your platform.
Transportation & mobility
- Named ticketing — Attach long-distance bus, train, boat or event tickets to a certified identity. Travellers can sign in with RDCPASS and book in a few taps.
- Login with RDCPASS — Passengers sign in and book named tickets with their RDCPASS identity.
SMEs & commerce
- Login with RDCPASS — One-step sign-in for your online store. Customers choose what they share.
Employment & HR
- Employee sign-in with RDCPASS — Employees sign in to your HR portal with RDCPASS and confirm with a face check on their phone. Nobody has another password to forget.
- Login with RDCPASS — Employees sign in to HR and payroll portals with their RDCPASS identity instead of a password.
Health & medical
- Telemedicine sign-in with RDCPASS
- Telemedicine and patient portals — Patients sign in with RDCPASS, confirm with a face check on their phone and decide which details your service receives.
- Login with RDCPASS — Consent-based sign-in for telemedicine services and patient portals.
With Login with RDCPASS, patients confirm on their own phone and decide which details your service receives.
Education
- Student and alumni portals — Students and graduates sign in with RDCPASS to see results, download certificates or have a diploma verified. They share only the details they choose.
- Login with RDCPASS — A single sign-in for student, alumni and diploma-verification portals.
Can students sign in to our portal without a new password?
Yes. With Login with RDCPASS they use the identity they already hold, confirm with a face check on their phone and decide which details to share.
With Login with RDCPASS, students confirm on their own phone and decide which details to share.
Government & public services
A citizen signs in to an online service from their phone, and benefits are paid to recipients whose identity has been checked.
Do citizens need a new account for each portal?
No. With Login with RDCPASS, a citizen signs in to any connected service with the national identity they already hold and confirms with a face check on their phone.
With Login with RDCPASS, citizens confirm on their own phone and decide which details each service receives.
Possible results
authenticatedUser signed inPer monthly active user- The citizen approved: your application receives their basic KYC.
consent_deniedConsent declinedNot billed- The citizen declined on their phone. Offer them another way.
consent_abandonedConsent abandonedNot billed- The citizen did not answer in time. They can start again.
Expected result, in test
Rate limits
These endpoints are metered under the login_with_rdcpass service, subject to whatever test or production quota your application is on. See Rate limits & quotas for current limits. Every other error condition not covered above — malformed mTLS, quota, etc. — uses the standard error format described in Errors.



