Required actions
Screens of your own a person must pass before signing in, and the ones every new account gets.
Required actions
Only if your app has screens a person must pass before signing in.
- The names are your own. Set them with
PUT /internal/v1/identities/{id}/required-actions, in the order they are to be done, or have Otoko Identity add them to new accounts. - After a right password, a passkey or any identity provider, the browser goes to the client's Action URL with
?action_code=, a single-use code. Without an Action URL, a sign-in with an action pending stops, saying so. - Your backend swaps the code at
POST /internal/v1/action-codes/redemptionwith{code, code_verifier}, the PKCE verifier of the sign-in it belongs to, and gets back{identity_id, client_id, action, email, first_name, last_name, language}. - Show your own screen, save in your own backend, and mark it done with
DELETE /internal/v1/identities/{id}/required-actions/{action}. Then send the browser to/oauth/continue, which checks the sign-in, asks your sign-in check again, and sends the next action to your page or hands over the sign-in code.
Note
Coming back without marking it done goes to your page again, never on. A name can't hold a slash. VERIFY_EMAIL is still cleared by an emailed code or a set-password link.
Required actions for new accounts
- Under Login on the app's Overview tab, Required actions for new accounts lists names of your own, such as
ORGANIZATION_DETAILS. - Otoko Identity adds them to every account it makes for the app, at the points
account.createdis sent for. The person's first sign-in then goes to the client's Action URL, as above. - Saving answers 422
invalid_required_actionfor more than 10 actions, the same one twice, a name that isn't 1 to 40 characters, holds a slash or is.or.., one of Otoko Identity's own reserved steps, such asUPDATE_PASSWORD, or when none of the app's browser clients has an Action URL. - An account your backend makes through
POST /internal/v1/identitiesgets none of them: give it its actions yourself.