iss=https://auth.parcelabs.com

One sign-in, the whole platform.

code_challenge_methods_supported=["S256"]

ParceLabs ID is the platform's identity provider, on auth.parcelabs.com. People and services sign in with OAuth 2.0 and OpenID Connect; the EasyParcel app, the API and the AI Engine trust its tokens.

POST /oauth/introspect → amr=["mfa"] acr="mfa"

Three states, three answers.

Without a token, userinfo answers 401. After sign-in it returns the profile; with the second factor, token introspection reports amr mfa.

POST /oauth/introspect
Marta Bianchimarta@negozio-esempio.it
sub  "48213"
amr  ["mfa"]
acr  "mfa"
  • app.easyparcel.it
  • docs.parcelabs.com
  • Your account

Second factor: recognised everywhere, with her permissions.

Example user.

POST /oauth/token

For people and for services.

People sign in on auth.parcelabs.com, services with their own credentials.

authorization_code
For people. PKCE required for every client, S256 only.
client_credentials
For services: a token on behalf of the client, with no user.
refresh_token
Rotates on every use. If a used token comes back, the whole chain is revoked.

First-party confidential clients also have urn:parcelabs:params:oauth:grant-type:step-up: it exchanges a subject_token, with a TOTP or recovery code, for a short-lived token with amr=["mfa"], valid for 10 minutes and with no refresh.

GET /.well-known/openid-configuration

OpenID Connect, endpoint by endpoint.

Everything is in the discovery document: an OIDC library already knows where to go.

GET /.well-known/openid-configuration
Endpoints, scopes and algorithms in one document.
GET /.well-known/jwks.json
The public keys to verify RS256-signed tokens.
GET /oauth/userinfo
The token user's profile: sub, email, name.
POST /oauth/introspect
RFC 7662: services ask whether a token is active and with which scopes.
POST /oauth/revoke
RFC 7009: revokes a token.

amr=["mfa"] acr="mfa"

Second factor and sign-in links.

TOTP codes from an authenticator app, with recovery codes in reserve. Sensitive actions ask for an elevated token; people who want no password sign in with an email link.

POST /oauth/2fa/confirm
Turns TOTP on with the first code and returns the recovery codes.
POST /oauth/2fa/recovery-codes
New recovery codes, with an elevated token only.

A password-free sign-in link is requested by a trusted service with POST /oauth/login-link/start (scope iam:oauth:login-link), which then sends the email. The link is single-use and valid for 15 minutes.

auth.parcelabs.com/dashboard

Administration in the same place.

OAuth clients, users, roles, scopes and sessions are managed on auth.parcelabs.com.

  • OAuth clientsCreate, edit, new secret, disable.
  • UsersRoles, password and second-factor resets, collaborators.
  • Change logWho changed what: a person or an integration.
esc