Developer Diagrams | Parallel Developer Documentation

This is documentation for Parallel Developer Documentation Legacy – v1.x, which is no longer actively maintained.

For up-to-date documentation, see the latest version (Current – v2.x).

Version: Legacy – v1.x

Embedded Flow Sequence Diagram

The Parallel JavaScript Software Development Kit (SDK) provides the same OAuth2.0 authorization code flow as the server API, but it takes place entirely in the browser. Parallel JS SDK integrations automatically make use of the OAuth2.0 PKCE extension, which prevents request forgery and injection attacks.

Calling loadParallel(...) or Parallel.init(...) with the appropriate config will inject a "Parallel Passport" button that, when clicked, will initialize the flow. The following sequence diagram describes the overlay and embed flow types, whereby the Parallel experience is rendered inside an <iframe/> on the Partner Site.

Sequence Flow:

  1. Partner site initializes Parallel JS SDK with appropriate config
  2. Parallel SDK builds OAuth2.0 redirect URL with OAuth2.0+PKCE code challenge.
  3. User sees "Parallel Passport" button
  4. User sees embedded Parallel experience within Partner Site
  5. User will be navigated through flow(s) as necessary to fulfill the specified scopes
    • ✔ KYC/Accreditation process complete
  6. [Save Tokens for Ongoing Access]

Request and Response Flow: