Skip to main content
Your dealer CRM, financing portal or fleet tool can authenticate truckaurbus users instead of running its own login: a button, a consent screen, and you receive a verified identity. It is standard OpenID Connect, so any OAuth library you already use will work. What you get after consent: the user’s stable id, their name, and their verified mobile number. What you never get: their saved vehicles, enquiries, bids, or anything else they do on truckaurbus. The consent screen says exactly this to the user, in plain words.

Registration

Client registration is by arrangement while the program is young: write to developers@truckaurbus.com with your app’s name and redirect URIs. You receive a client_id. Browser and mobile apps are registered as public clients; PKCE is required for everyone, so there is no client secret to leak.

Endpoints

Everything is discoverable from one URL, which is the only one worth hardcoding:
The document lists the authorization, token, userinfo and JWKS endpoints. Point your OIDC library at it and skip the rest of this section.

Scopes and claims

Request only what you need; the consent screen lists every scope you ask for.

The flow

Authorization code with PKCE, the one every library implements:
  1. Generate a code_verifier and its S256 code_challenge.
  2. Send the user to the authorization endpoint with client_id, redirect_uri, response_type=code, scope, state and the challenge. A signed-in truckaurbus user sees the consent screen immediately; a signed-out one signs in first and returns to it.
  3. The user approves; your redirect_uri receives code and state.
  4. Exchange the code at the token endpoint with your code_verifier. You receive an access_token and an id_token (RS256, verify it against the JWKS from discovery).
  5. Read the claims from the id_token, or call the userinfo endpoint with the access token.

The button

Use the wordmark button so people recognise the door. Copy it as is; the wordmark never restyles.
A light variant works too: white background, #141414 text, one-pixel #141414 border, same wordmark.

Rules

  • PKCE is required; a request without a code challenge is refused.
  • Redirect URIs are exact-match and https only.
  • Verify the id_token signature against the discovery JWKS and check aud is your client_id.
  • The sub claim is the stable key for the user; the phone number can change, sub cannot.
  • Treat a user’s identity as theirs: if they withdraw consent from their account page, your refresh stops working, and that is the system behaving correctly.