sequenceDiagram
autonumber
actor U as User
participant CLI as ns-upgrade CLI
participant ACC as Accounts UI
CLI->>CLI: Start loopback server on 127.0.0.1<br/>first free port in 8765-8770
CLI->>CLI: Generate CSRF state
CLI->>ACC: Open {accountsUrl}/sign-in?extension=nsolid-plugin&port={port}&state={state}
Note over ACC: Multi-org user picks an organization<br/>Org-less user gets one created
ACC-->>CLI: Redirect to http://127.0.0.1:{port}/callback<br/>with org token + orgId
CLI->>CLI: Validate state and keep token in memory only
CLI-->>U: Show styled success page
Tasks
extension=nsolid-plugin&port&state), open the browser, and verify the URL/query construction tests passFlow
sequenceDiagram autonumber actor U as User participant CLI as ns-upgrade CLI participant ACC as Accounts UI CLI->>CLI: Start loopback server on 127.0.0.1<br/>first free port in 8765-8770 CLI->>CLI: Generate CSRF state CLI->>ACC: Open {accountsUrl}/sign-in?extension=nsolid-plugin&port={port}&state={state} Note over ACC: Multi-org user picks an organization<br/>Org-less user gets one created ACC-->>CLI: Redirect to http://127.0.0.1:{port}/callback<br/>with org token + orgId CLI->>CLI: Validate state and keep token in memory only CLI-->>U: Show styled success pageExpectation