OAuth clients

Admin-scoped Passport OAuth client registration (this app acting as an OAuth Identity Provider) plus the external JumpCloud OIDC SSO handoff.

Admin-scoped Passport OAuth client registration (this app acting as an OAuth Identity Provider) plus the external JumpCloud OIDC SSO handoff. Client-management endpoints (create / list / view / update / delete client, create password-grant client) require a bearer token and are owner-scoped. A client can only be managed by the user who created it. rs-login verifies a bearer token and returns the SSO session payload for partner/account users. auth/sso/jumpcloud/callback (browser 302) and auth/sso/exchange (one-time-code redemption) are the public JumpCloud OIDC leg — no token. They issue/redeem a single-use exchange code and hand back a Passport access token.

Prerequisites

  • A bearer token in the Authorization header. Any endpoint that needs no token says so on its own page.
  • The id of each record the call targets. Every endpoint page lists the ids it needs.

Errors

StatusMeaning
401The bearer token is missing, expired or invalid
403The token is valid but the record sits outside your account
422The request failed validation — the response names the fields
500Unexpected server error

Individual endpoints may return more; each page lists its own.

Endpoints

Create OAuth client (authorization code grant)

POST — Create a Passport authorization-code grant OAuth client (name + redirect URLs) owned by the authenticated user.

Open →

Create password-grant client

POST — Create a Passport password-grant client used to mint tokens via the password flow.

Open →

List OAuth clients

GET — List the OAuth clients owned by the caller, ordered by name.

Open →

View OAuth client

POST — Returns the details of a single OAuth client owned by the caller.

Open →

Update OAuth client

POST — Update the name and redirect URLs of an existing OAuth client.

Open →

Delete OAuth client

POST — Revoke every token issued for the client and deletes it.

Open →

SSO login (verify token, return session)

GET — SSO callback: verifies the presented bearer token and returns the login session payload (user, company, theme, white-label).

Open →

JumpCloud OIDC callback (issue exchange code)

GET — JumpCloud redirects the browser here after sign-in.

Open →

Exchange SSO code for access token

GET — The SPA hits this to redeem the one-time SSO code issued by the JumpCloud callback.

Open →


Did this page help you?