Authentication Flow

DWS Viewer API uses JSON Web Tokens (JWT) for authenticating its Nutrient for Web clients:

  1. 1
    Your backend creates a session token for a particular document via DWS Viewer API’s backend API.
  2. 2
    Next, it passes the session token to your client apps that use Nutrient for Web.
  3. 3
    Your app then passes the session token when loading the PSPDFKit for Web SDK. It uses it to prove it has access to the claimed DWS Viewer API document.

The session token is generated and verified by DWS Viewer API