Connect an app
The standards the apps connect by. They’re being proved on our own apps first; there’s no programme for outside developers yet.
Where this stands
vNetwork’s side is built: the register, sign-in for other apps, entitlements, portals, the World Context Passport and the network menu. No app has switched its side on yet. The first to be connected are vPub and vCafe, then vHall and vWorks.
An app that connects keeps its own brand, its own navigation, its own sessions and its own records. If vNetwork is unreachable, the app carries on working on its own.
What an app needs
An entry in the register
A stable id (VN-0001 to VN-0073), its domain, its status and how it connects. The register is the one source the directory, the menu and the feed are drawn from: /api/registry.
Sign in with vNetwork
OpenID Connect’s code flow with PKCE. The app sends people to
/oauth/authorize, takes them back at its own/api/auth/network/callback, swaps the code for who it is, and starts its own session.An arrival address
One address,
/api/network/arrive, that takes a one-time reference, swaps it server-side for the World Context Passport, and sets the person down where it says.The network menu
One script,
/embed/vnetwork.js: a small network button that opens My apps, friends around now, nearby destinations, saved places and the way back. It sits beside the app’s own navigation, never in place of it.
Addresses
| Address | What it’s for |
|---|---|
/.well-known/openid-configuration | Where everything is, for any OpenID Connect library. |
/oauth/authorize | Sign in, agree, and back to the app with a one-time code. |
/oauth/token | The app’s server swaps the code and its verifier for an ID token and an access token. |
/oauth/userinfo | Who an access token is for. |
/oauth/revoke | The app says a sign-in has ended. |
/oauth/jwks | The public keys ID tokens are signed with (ES256). |
/api/v1/transitions | Set off for another app, redeem an arrival, say they’ve arrived, and go back. |
/api/registry | The register as other sites read it. Public, and no more than these pages say. |
/api/health | Whether vNetwork’s own parts are answering. |
Our own apps, on the same Cloudflare account, reach the same things over a service binding instead of the web: the NetworkBridge. The repository’s docs folder has the details.
The World Context Passport
The record of one journey, made and kept by vNetwork’s server. What a browser says about where it is is never taken as true, and nothing in it is a credential.
- Who
- The account’s id for that app. A character or an organisation, only where the person is travelling as one.
- World
- Universe, realm, timeline and era.
- From
- The app, venue, room, entrance and position they left, and whether the app’s server vouched for it.
- To
- The app, venue, room and entrance to arrive at.
- How
- Participation mode: standalone, connected or immersive.
- Permissions
- The memberships that bear on the destination. Advice, never a substitute for the app’s own checks.
- Return
- Whether there’s a way back, and to which journey it belongs.
Not every app needs every field. A practical tool like vFridge needs no realm and no character at all.
What’s checked, every time
- The app is in the register and switched on, and the address to return to is exactly its own.
- A code or a journey’s reference works once, briefly, for the app and the account it was made for.
- The account is in good standing and still connected to that app.
- A portal, an app or an account can be switched off on its own, at once, without touching anything else.
- A compromised app gains nothing beyond its own connection: no shared cookie, no token for another app.
Trying it
Run vNetwork on your own computer and three made-up apps come with it, standing in for a pub, a café and a workplace in early access. They sign in with vNetwork, show the menu and travel to each other by portal, using the same code a real app’s service binding reaches. They exist only on localhost.
This site: https://vnetwork.app