Apps and clients
App
An app is your product as Novren ID sees it. Everything that belongs to a user is scoped to an app:
- its id,
app-followed by 20 hexadecimal characters (for exampleapp-0123456789abcdef0123). It is assigned by Novren ID, never chosen, so nobody can take a name that looks like someone else's; - the audience of its tokens: an access token for your app carries
aud = <your app id>and is useless anywhere else; - the app key of each user, created the first time that user authorizes your app (see The app key);
- its users: the accounts that authorized it at least once. Your server can see only them;
- its service tokens, for your server;
- its settings: name, logo, password rules.
Client
A client is one way into the app: your website, your staging site, your desktop app. An app has up to 5 clients. Each client has:
- its id,
cl-followed by 20 hexadecimal characters. It goes inclientIdin the SDK; - its callback URLs, where the user comes back after signing in (up to 20), and/or
- the loopback callback, for desktop apps: the user comes back to a small server on
127.0.0.1on their own computer, on a port that changes at every sign-in.
A client can be disabled at any moment (kill switch): from that instant nobody signs in through it, and the tokens it issued stop being refreshed.
Why separate clients
- Separate kill switches. If your staging site leaks, you disable its client and production keeps working.
- Separate logs. Each sign-in event names the client it came from.
- Separate callback URLs. The embedded form is allowed only on the origin of the client's callback URL.
All clients of an app share the same app: the same users, the same app key for each user, the same tokens' audience. A user who signs in on your website and on your desktop app gets the same productKey on both.
Service token
A service token is how your server talks to Novren ID: it reads revocations, deleted-account events and your users' emails. It is a 64-character hexadecimal secret, shown only once. Novren ID stores only its hash. Up to 5 active tokens per app; see Service tokens.
Never in the browser
A service token never goes to a browser, a mobile app or a desktop app. Anyone holding it can list your users' emails.
Summary
| Who uses it | Secret? | Where it lives | |
|---|---|---|---|
| App id | your server (product in the verifier) | no | code, config |
| Client id | your front end, your desktop app | no | code |
| Callback URL | Novren ID redirects there | no | console |
| Service token | your server only | yes | server environment |