Skip to content

Center Authentication

We authenticate centers during sync requests using JWT. Tokens are created in AR Online for every center and passed to AR Offline when the Offline app is installed for the first time. JWT allows AR Online to know which center requests synchronization.

THIS DIAGRAM EXPLAINS HOW CENTER (OFFLINE APP) AUTHENTICATION WORKS
WITH JWT DURING THE SYNC CLOUD PROCESS –
HOW JWT IS GENERATED, DELIVERED AND UTILIZED TO/BY THE OFFLINE APPLICATION.
    sequenceDiagram
    actor A as Admin
    participant OA as Online App
    A->>OA: Create new Center
    OA->>OA: Generate Center JWT
    OA->>A: Show new Center and JWT

    Note over A, OA: Time break


    create actor S as Specialist
    A->>S: Send installer
    Note over S: Starts installation
    A->>S: Send JWT
    create participant B as Offline App
    S->>B: Enter JWT during installation
    Note over S: Finishes installation
    destroy A
    S->>A: Confirms finished installation


    Note over OA, B: Time Break


    S->>+B: Initiate synchronization
    B->>OA: Send data auth-ed with JWT
    OA->>B: Respond with ideal_rf.csv and data
    loop While there are files to download
        B<<->>OA: Download files auth-ed with JWT
    end
    B->>-S: Synchronization completed