Skip to Content
Otoko Identity

Troubleshooting

Troubleshooting

What you seeWhy
Every sign-in failsFor an app with a backend: the app has no webhook secret yet, or the backend doesn't answer the sign-in check with a 200 and {"allowed": true} within 3 seconds. Both fail closed, unless the app's If the backend can't be reached is Allow sign-in and the backend gave no answer or a 5xx.
app_not_set_up, with the email gate onA client with the email gate on lets nobody in until the app has roles and the client allows some. A browser starting a sign-in gets the error page with reason=app_not_set_up, and the email check, the password and the emailed code answer 503 app_not_set_up. The log says what's missing.
invalid_redirect_uri on the error pageThe address your app sent as redirect_uri isn't on the client's Valid redirect URIs, which are compared exactly. Add it there exactly as your app sends it.
Sign-in codes, sign-up, password reset or invitation emails never arrive, or mail_server_not_set_upThe mail server the app chose isn't set up, or its stored password can't be read, so it sends nothing, and what needs mail is refused with 503 mail_server_not_set_up. With Send this app's emails through Otoko Identity's mail server ticked, Otoko Identity's own is set up on the console's Settings. Otherwise set up the app's own on its Email tab, and send its test email.
sender_required when saving the app or sending its test emailThe app sends through its own mail server, or tests it, with no From address. Set one on the app's Email tab.
No sign-up link on the sign-in pageSign-up shows only with both the app's Sign-up allowed, under Login on its Overview tab, and the client's Allow sign-up on.
403 flow_not_offeredThe app's account flows are its backend's, so Otoko Identity's own sign-up, forgot password and invitations aren't offered.
422 backend_requiredThe app has no backend, so its roles can't be its backend's, it can't ask before a sign-up, its account flows can't be its backend's, and it can't allow sign-in when the backend can't be reached.
422 invalid_required_actionThe required actions for new accounts are more than 10, list one twice, or have a name that isn't your own: 1 to 40 characters, with no slash, not . or .., and none of Otoko Identity's reserved steps. Or none of the app's browser clients has an Action URL to send them to.
Every account-created call gets 401 since the app got a webhook signing secretYour backend still checks the signature with the webhook secret. Give it the signing secret, whsec_, and read its key as the base64 after whsec_. See Verify its signature. The dead deliveries can be replayed from the app's Webhook deliveries.
422 passkey_origin_required or invalid_passkey_origin when saving a clientA new mobile client with passkeys on needs its Android passkey origins, and only a mobile client may have them. See Mobile apps.
A new person isn't in your backend's databaseThe account-created call is a notice, and may be late or dead. Make the user on its first request, from userinfo. Dead deliveries are on the app's Webhook deliveries, with Replay.
503 on sign-up, with Ask the backend before sign-up onThe backend didn't answer the sign-up check with a 200 and an allowed. It fails closed.
A sign-in stops at a required actionThe client has no Action URL, so a sign-in with an action pending stops, saying so.
401 invalid_client at the token endpointThe secret wasn't sent the way the client's authenticator says, or was sent both ways. Use one of them.
429 invalid_client with Retry-AfterMore than 20 wrong secrets in 15 minutes from one address, such as a deploy with a stale secret. Wait, and no other address is held.
invalid_scopeThe request asked for a scope this service doesn't know. Use only openid, profile, email, roles and offline_access.
account_selection_requiredThe request used prompt=select_account, which has no screen here.
A signed-out person still passes your backend for a whileYour backend has no session-ends route, so a sign-out takes effect when the token expires.
An identity provider sign-in fails with nothing madeYour sso-accounts route answered 403, 404, 409 or 422, which refuses, or a 5xx or nothing, which reads as an outage.
409 app_in_use when deleting an appIt still has identities, themes or open invitations. Revoke the invitations first. With the reason invitations_pending_cleanup, it has more than 1,000 closed invitations, which the worker clears 30 days after each closed. An app with identities can only be disabled.

References

The specifications Otoko Identity follows.