Your site keeps the article text. Norspire keeps the readers, the plans and the payments. Norspire never holds the text of an article.
You add 2 things to your site:
- A script tag and 4 elements in your pages. They draw the walls, the meter notice, the account link and the legal links.
- A server check. Your server asks Norspire for each view of a metered or paid article whether the reader may see the paid part.
The flow of 1 view
- A browser asks your server for an article.
- Your server calls
POST /api/v1/accesswith the server key, the article reference and the access level. It adds the 2 cookies of the reader, when the browser sent them. - Norspire answers
full,registration_wallorpaywall. - For
full, your server sends the paid part. For each other answer, your server sends the teaser and<norspire-wall>, and no paid part. - The script in the page draws the wall from the data of the publication.
- BrowserReader opens the article
- 1Requests the article
- Site serverHolds the article text
- 2POST /api/v1/access
- NorspireChecks access
- 3Access granted
full: your server sends the full article. - 3Wall shown
registration_wallorpaywall: your server sends the teaser and wall element.
The flow of 1 log-in
- The reader selects
Log inin the page. The link opens/login?return=<address of the page>on the subscription host. - The reader logs in on the subscription host. Norspire answers HTTP 303 to the return address with the query value
ns_handoff=<code>. - Your server sees
ns_handoff. It callsPOST /api/v1/handoffwith the code and the server key. - Your server sets the reader cookie and answers HTTP 303 to the same address with no
ns_handoff. - Each later server check sends the value of the reader cookie. Norspire finds the reader.
- 1ReaderSelects
Log inon the page. The link opens the subscription host. - 2Subscription hostThe reader logs in. Norspire redirects with HTTP 303 and
ns_handoff=<code>. - 3Site serverCalls
POST /api/v1/handoffwith the code and the server key. - 4Site serverSets the reader cookie and redirects with HTTP 303 with no
ns_handoff. - 5NorspireEach later server check sends the reader cookie. Norspire identifies the reader.
The flow uses top-level navigations and server calls only. It works with third-party cookies blocked, in each browser, and with JavaScript off.