Skip to Content
Otoko Identity

Which kind is your app?

Each quickstart connects one kind of app to Otoko Identity (OI) from start to finish: the console steps, the packages, where each file goes in your framework, the code, and how to check it works. Pick yours with two questions. Where do people sign in: in the browser, on pages your server renders, in a phone app, or nowhere, as nobody signs in? And does OI need to call an API of yours, your backend, to ask whether someone may sign in and to say when a session ends?

For a new web app, sign in from your server when it has one, as the two server quickstarts do: the tokens stay on the server, and the browser gets only a session cookie. Sign in from the browser only when the app is static files. See Which kind of app?

One app, several clients. An app in OI is one set of people. A website and a phone app that share their people are one app with two clients: a browser or server client for the website, and a mobile client for the phone app, each with its own client ID. Follow the quickstart for each part, and add the second client on the app's Clients tab. An app with a mobile client needs a backend, as the phone app signs in through it, and that backend lists every client ID in IDENTITY_ALLOWED_CLIENT_IDS, so it accepts the tokens of both.