Skip to main content

Troubleshooting & FAQ

This page covers protocol-level and integration errors you'll hit when wiring up Idenplane: OAuth token exchange failures, redirect_uri/CORS mismatches, SAML assertion problems, WebAuthn registration issues, LDAP federation, webhook delivery, and email.

For infrastructure issues (container won't start, database connection, health checks), see the Quickstart Troubleshooting section instead.

Every behavior described below reflects what the server code actually does — not generic IAM advice — so you can match your symptom to the exact check that's failing.


OAuth Errors & Token Exchange​

The token endpoint (/realms/{realm}/protocol/openid-connect/token) returns RFC 6749 §5.2-shaped errors: { "error": "<code>", "error_description": "<detail>" }. Most failures are invalid_grant with a 400 status, but a failed invalid_client check returns 401 with a WWW-Authenticate: Basic realm="<realm>", error="invalid_client" header.

invalid_grant: what each cause means​

invalid_grant is thrown from many different checks, and the error_description is the fastest way to tell which one fired. The table below lists the common ones. A few rarer ones are not in it: The refresh token is bound to a different client certificate, The user is disabled and The session has ended.

error_descriptionGrant / contextWhat actually happenedWhat to check
Invalid credentialspasswordUsername/password didn't match, the user is disabled, or (for a federated user) the LDAP bind failed — this also covers a user that doesn't exist locally yet: the server attempts an import-on-first-login federation bind before giving upVerify the password; check the user's enabled flag; if the user has (or should have) a federationLink, test the LDAP connection (see LDAP section) — including for a brand-new user who should be auto-imported on first login but isn't (check importEnabled on the federation)
Account is temporarily locked. Please try again later.password, authorization_codeBrute-force protection tripped: too many failures inside the lockout windowWait out lockoutDuration, or unlock with POST /admin/realms/{realm}/brute-force/users/{userId}/unlock (needs an admin session with MFA step-up; the API key is refused)
Password has expired. Please change your password.passwordThe realm's password policy marks this user's password as expiredHave the user complete the password-reset flow
MFA setup required. Please set up two-factor authentication.passwordThe realm requires MFA for this user, but they have no TOTP enrolled yetHave the user sign in once through the browser, where the enrolment page lets them add an authenticator app (or a phone), or enrol on the account page (/realms/{realm}/account/totp-setup)
Invalid or expired MFA token, or too many failed attemptsmfa_otpThe mfa_token is expired/unknown, or it was issued for a different realm, or for a different clientAll three cases return identical wording by design (no oracle for attackers) — check the server logs, which log the realm/client mismatch cases distinctly (MFA cross-realm token use attempt / MFA cross-client token use attempt)
Invalid OTP codemfa_otpThe submitted code failed both TOTP verification and recovery-code verificationCheck the device clock (TOTP codes use a fixed 30-second step, with one step of tolerance); try a recovery code
User not foundmfa_otp, authorization_code, device_codeThe user backing the challenge/code/device grant no longer existsRe-authenticate from scratch
Invalid or expired refresh tokenrefresh_tokenToken not found, already revoked, or past expiresAtSee refresh token rotation below — a revoked token here usually means reuse was detected
This refresh token predates client binding. Please log in again.refresh_tokenThe stored token has no clientId (issued before client-binding was added)One-time re-login resolves it permanently
Refresh token was not issued to this clientrefresh_tokenThe client_id in the request doesn't match the clientId the token was issued toUse the same client_id that originally requested the token
Invalid or expired authorization codeauthorization_codeThe code doesn't exist, was already consumed, expired (60s TTL), or belongs to a different clientCodes are single-use via an atomic conditional update — a second concurrent request for the same code always gets this error
redirect_uri mismatchauthorization_codeThe redirect_uri sent to /token isn't byte-identical to the one stored on the code at /authorize timeSee redirect_uri exactness at token exchange
Invalid code_verifierauthorization_codeSHA-256(code_verifier) doesn't match the stored code_challengeCheck base64url encoding (no padding) and that you're hashing the verifier, not sending it raw as the challenge
MFA verification required. Device code grant does not support MFA...device_codeThe user has MFA enabled, but the device-code flow has no interactive step to complete itUse authorization_code (with PKCE) for any user that has MFA enabled
MFA setup required. Use authorization_code grant to complete MFA setup.device_codeThe realm requires MFA and the user hasn't enrolled itSame fix — switch that user's onboarding to authorization_code
mfa_required is not invalid_grant

When a password grant succeeds but MFA must be completed, the server returns a plain 401 with { "error": "mfa_required", "error_description": "...", "mfa_token": "..." } — a distinct response shape, not an OAuthTokenError. Submit mfa_token and the user's OTP to the mfa_otp grant to finish the flow.

Refresh token rotation and reuse​

Idenplane rotates refresh tokens on every use — each one is single-use, and a new one is issued alongside new access/ID tokens. If a refresh token is presented a second time (storedToken.revoked is already true), the server doesn't just reject that one request: it revokes every refresh token on that session, then returns Invalid or expired refresh token. This is deliberate reuse-detection (a stolen-and-replayed token is assumed to mean the session is compromised), but it means a client-side bug that re-sends the same refresh token (e.g. a race between two tabs refreshing concurrently) can silently log a user out entirely.

redirect_uri exactness at token exchange​

There are two different redirect_uri checks, and they are not equally strict:

  1. At /authorize — redirect_uri is checked with matchesRedirectUri() against the client's registered redirectUris: it must be one of them exactly, except that a loopback IP URI (http://127.0.0.1/..., http://[::1]/...) may use any port. Only a client with the insecure allowInsecureWildcardRedirectUris opt-in also matches paths below a /* entry.
  2. At /token — the redirect_uri you send must be byte-identical to the exact string that was submitted at /authorize (stored on the authorization code).

Always send the identical redirect_uri value to both endpoints.

invalid_client / unauthorized_client​

  • invalid_client (401): missing client_id, unknown/disabled client, missing client_secret for a confidential client, or a secret that doesn't verify.
  • unauthorized_client (400): the client exists and authenticated, but its grantTypes list doesn't include the grant type you're requesting (e.g. calling client_credentials on a client that only has authorization_code enabled).

redirect_uri, CORS, and Origin Mismatches​

Exact matching​

Since 0.11.0 redirectUris and postLogoutRedirectUris are matched with matchesRedirectUri(), exactly:

  • A different port, scheme, host case, path, trailing slash or query string fails. So does any redirect_uri with a fragment (#).
  • A loopback IP entry such as http://127.0.0.1/callback matches on any port (http://127.0.0.1:51234/callback), for native apps (RFC 8252). localhost does not get this.
  • An entry ending in /* matches nothing but itself, unless the client has allowInsecureWildcardRedirectUris on. The 0.11.0 upgrade turned that on for clients that already had such an entry; GET /admin/upgrade/health lists them under wildcard_redirect_uris. See Redirect URI matching.

Invalid redirect_uri after upgrading to 0.11.0: the application sends a URI that differs from the registered one, often by a trailing slash or a query string, or the client relies on a wildcard that was not upgraded with it (for example, one added by hand in the database afterwards). Register the exact URI.

How quickly redirect_uri and CORS (webOrigins) changes take effect​

  • redirect_uri validation reads client.redirectUris from the database on every /authorize request. A change takes effect on the very next request.
  • CORS webOrigins validation checks a set of allowed origins that every Idenplane process keeps in memory. When a client's webOrigins or enabled flag changes, the database announces it (PostgreSQL LISTEN/NOTIFY) and every process and replica reloads its set, typically within milliseconds. That holds however the change was made, including the Admin API, an import, or SQL run by hand.

If a CORS change seems not to apply, check that the processes can receive these announcements. When they cannot (CACHE_L1=off, or a connection pooler in transaction mode in front of the database), the set is reloaded every 5 minutes instead. See In-process cache.


SAML SSO​

Idenplane's SAML module (src/saml/) implements Idenplane as an Identity Provider (IdP) issuing assertions to registered Service Providers — it does not consume assertions from an external IdP. (Delegating login to an external OIDC provider is the separate Identity Providers feature; LDAP is separate again, under User Federation.)

What the IdP checks on an AuthnRequest​

Idenplane accepts AuthnRequests over the HTTP-Redirect binding (GET, raw DEFLATE as the bindings specification requires; zlib-wrapped and uncompressed requests are accepted too) and the HTTP-POST binding (POST, form field SAMLRequest). Before it acts on a request it checks, in this order:

  1. Well-formed and plain XML. The request is refused if it has a DTD (<!DOCTYPE> or <!ENTITY>), a comment, a processing instruction other than the XML declaration, a CDATA section, an ID/Id/id value used twice, or a child of the AuthnRequest that the schema does not have, or has elsewhere. The children must come in schema order (Issuer, Signature, Extensions, Subject, NameIDPolicy, Conditions, RequestedAuthnContext, Scoping), each at most once: an enveloped signature goes right after Issuer, not at the end. Over HTTP-Redirect the message must not contain an XML signature at all, whether or not the SP has a certificate (the bindings specification requires it to be removed). The root must have an ID that is a valid xs:ID of at most 256 characters, and an Issuer.
  2. The service provider. Issuer must be the entityId of an enabled service provider of the realm.
  3. The signature, when the SP has a certificate. A service provider with a certificate must sign every request, over both bindings; an unsigned request is refused.
    • HTTP-Redirect: the signature is checked over the query string exactly as received: SAMLRequest=…&RelayState=…&SigAlg=… with the values still URL-encoded (SAML bindings §3.4.4.1). RelayState is read from those same bytes. A parameter that appears twice is refused.
    • HTTP-POST: exactly one <ds:Signature>, a direct child of the AuthnRequest, with exactly one Reference whose URI is # plus the AuthnRequest's ID. After the signature verifies, every field is read from the bytes the signature covers, never from the rest of the document. The certificate in the request's KeyInfo is ignored: only the one registered for the SP counts.
    • Algorithms: RSA-SHA256 or RSA-SHA512 signatures, SHA-256 or SHA-512 digests, exclusive or inclusive canonicalization without comments. SHA-1 (rsa-sha1, sha1) is refused; there is no per-SP exception.
  4. Freshness. IssueInstant is required. It may be at most SAML_REQUEST_MAX_AGE_SECONDS (default 300) old and SAML_CLOCK_SKEW_SECONDS (default 180) in the future; the skew is also added to the maximum age.
  5. Destination, when present, must be this realm's SSO endpoint, {BASE_URL}/realms/{realm}/protocol/saml, as the IdP metadata publishes it.
  6. ACS URL, when present, must be registered (see below).
  7. Replay. The request's ID is recorded for its service provider until the request could no longer pass the freshness check. The same ID is refused a second time, on any replica or worker: the record is a unique row in PostgreSQL (saml_request_ids), deleted by a scheduled job once it expires.

A refused request gets 400 with a short reason; the server log (warn, SamlIdpService) says exactly which check failed.

ForceAuthn, IsPassive, ProtocolBinding and RequestedAuthnContext are read from the signed request but not acted on: the response always goes back with the HTTP-POST binding, and an existing SSO session answers without a new sign-in. Idenplane does not handle SAML LogoutRequests.

Unknown or disabled SAML service provider​

The inbound AuthnRequest's Issuer must match a SamlServiceProvider.entityId registered in this realm, and that SP must have enabled: true. Register the SP first via POST /admin/realms/{realm}/saml-service-providers with a matching entityId.

ACS URL in AuthnRequest does not match any registered endpoint​

If the AuthnRequest specifies an AssertionConsumerServiceURL, it's checked against an allow-list: the SP's primary acsUrl plus anything in validRedirectUris. This is a strict equality check (no wildcard), and it exists specifically to stop an attacker crafting a request that redirects the signed assertion to a URL they control. If your SP sends a different ACS URL than what's registered (e.g. it varies by tenant subdomain), add every valid variant to validRedirectUris on that SP.

AuthnRequest is not signed / AuthnRequest signature validation failed​

Signatures are required when the SP has a certificate configured, and only then. Without a certificate on the SamlServiceProvider record, AuthnRequest signatures are not checked at all: anyone who can reach the SSO endpoint can start a sign-in for that SP (the response still only goes to its registered ACS URLs). Register the SP's signing certificate (PEM, or the base64 body copied from its metadata) to require signed requests.

With a certificate, AuthnRequest is not signed means the request carried no signature for its binding: no Signature/SigAlg query parameters over HTTP-Redirect, no <ds:Signature> over HTTP-POST. For AuthnRequest signature validation failed, check the server log for the reason. The usual ones:

  • the SP signs with a key that does not match the certificate on file (a rotated SP certificate);
  • the SP signs with SHA-1. Configure it for RSA-SHA256;
  • the SP rebuilds the query string before signing it differently from what it sends (the IdP verifies the bytes it receives);
  • over HTTP-POST, the signature is not a direct child of the AuthnRequest or references something other than the AuthnRequest's ID.

AuthnRequest has expired or is not yet valid / AuthnRequest IssueInstant is missing or invalid​

The request's IssueInstant is more than SAML_REQUEST_MAX_AGE_SECONDS plus SAML_CLOCK_SKEW_SECONDS old (8 minutes by default), more than the skew in the future, or missing. Sync both clocks with NTP. A service provider that builds its AuthnRequest long before the browser sends it (a pre-rendered page) needs a fresh request per sign-in; raise SAML_REQUEST_MAX_AGE_SECONDS only as a stopgap.

AuthnRequest has already been used​

The same request ID from the same service provider was accepted before. A browser that resends an old request (the back button, a bookmarked SSO URL) gets this; the SP must start a new sign-in with a new request. An SP that reuses a fixed ID for every request must be fixed to generate a random one.

AuthnRequest Destination does not match this endpoint​

Destination must be exactly {BASE_URL}/realms/{realm}/protocol/saml, the Location in the IdP metadata. Check BASE_URL, and that the SP has the current metadata (scheme, host, port, realm name).

Assertion rejected by the Service Provider (clock skew)​

When Idenplane issues a SAML response, the assertion's validity window is generated relative to the server's own clock:

  • NotBefore: 1 minute before issuance
  • NotOnOrAfter: 5 minutes after issuance
  • SessionNotOnOrAfter: 8 hours after issuance

If the Service Provider's clock is skewed relative to Idenplane's, the SP may reject the assertion as "not yet valid" or "expired" even though Idenplane considers it perfectly fresh — this is a failure on the SP side interpreting a valid assertion, not an error Idenplane will report. Sync both systems to NTP if you see intermittent SAML login failures that "just start working" a few minutes later.

SAMLRequest exceeds maximum allowed size​

Inbound AuthnRequest XML (after base64-decoding and inflating) is capped at 256 KB to prevent decompression-bomb attacks. A legitimate SP will never hit this; if you do, something upstream is malformed or malicious.


WebAuthn (Passkeys)​

Origin / RP ID mismatch — the most common cause of registration failures​

The expected origin for a WebAuthn ceremony is derived, not configured directly: getOrigin() builds it from BASE_URL's protocol and port combined with realm.webAuthnRpId's hostname. If those two settings disagree — for example BASE_URL=https://auth.example.com but webAuthnRpId is left at its default of localhost — the server expects https://localhost while the browser reports its real origin, and every registration and authentication ceremony fails signature/origin verification. Set webAuthnRpId to the actual hostname portion of your public BASE_URL (no scheme, no port).

Registration challenge expired or not found. Please try again. / Authentication challenge expired or not found.​

Challenges are single-use and stored with a 5-minute TTL. If the user takes longer than 5 minutes to complete the authenticator prompt, or resubmits after already consuming the challenge once, request a fresh set of options (POST .../webauthn/register/options or .../authenticate/options) and retry.

This passkey is already registered​

The credential ID returned by the authenticator already exists in the database (globally unique, not just per-user). This normally means the same physical key/passkey was registered previously — check existing credentials via GET .../account/webauthn/credentials before assuming it's a bug.

Counter rollback detected​

Every WebAuthn credential carries a signature counter that must strictly increase between authentications. If a new assertion's counter is not greater than the stored value, the server rejects it — this is a real signal of a cloned authenticator (or, more commonly in practice, a device that was restored from an old backup/snapshot). There's no recovery path other than re-registering the credential.

Repeated failures lock the account, not just the passkey​

Failed WebAuthn verifications call the same brute-force tracking used for passwords (recordWebAuthnFailure), counted against the realm's maxLoginFailures/failureResetTime window. Enough failed passkey attempts will lock the user's account the same way repeated password failures do — see the invalid_grant lockout row for how to clear it.

Attestation is not verified

Registration uses attestationType: 'none', so "attestation failures" are not a failure mode you'll encounter here — the server does not request or validate authenticator attestation statements.


LDAP / User Federation​

Always run test-connection before troubleshooting a sync​

POST /admin/realms/{realm}/user-federation/{id}/test-connection performs a real LDAP bind with the configured bindDn/bindCredential and returns { success: false, error: "<raw LDAP client error>" } on failure — this is the only endpoint that surfaces the actual LDAP error message (wrong bind DN, bad credentials, unreachable host, etc.). Run this first whenever federation isn't behaving as expected.

A sync that reports 0 synced users is not proof the directory is empty​

This is the single most important thing to know about the sync path: syncUsers() calls searchAllUsers(), and that method (along with searchUser() and authenticate()) swallows all exceptions and returns [] / null / false on any failure — a bad bind, a wrong usersDn, or a malformed searchFilter all look identical to "the directory has no matching users." The sync result and lastSyncStatus will cheerfully report Synced 0 new users (0 total in LDAP) with no error surfaced anywhere. If a sync returns 0 total unexpectedly, don't trust it — run test-connection, then double check usersDn, userObjectClass, and searchFilter are correct for your directory.

Sync only creates users — it never updates them​

syncUsers() imports any LDAP entry with no matching local user (realmId + username), and increments the counter only for those. Existing users linked via federationLink are not refreshed by a sync — attribute changes made in LDAP after the initial import won't reappear until the user logs in again (login-time federation re-resolves the user via authenticateViaFederation).

Import is disabled for this federation​

If importEnabled is false on the federation record, syncUsers() returns immediately with { synced: 0, message: 'Import is disabled for this federation' } without touching LDAP at all. This is expected behavior for federations configured purely for pass-through authentication, not user provisioning — check importEnabled before assuming sync is broken.

LDAP TLS certificate errors​

With ldaps:// and with startTls, the LDAP client validates the server's certificate (rejectUnauthorized: true, with the host name checked). A self-signed certificate, one from a private CA, or one whose name does not match the host fails the connection. Add the CA to Node's trust store, for example with NODE_EXTRA_CA_CERTS=/path/to/ca.pem, and connect with the name on the certificate.


Webhooks​

Verifying the signature​

Every delivery includes an X-Webhook-Signature: sha256=<hex> header, computed as HMAC-SHA256(secret, raw_json_body) over the exact request body bytes (verify against the raw body, not a re-serialized version of the parsed JSON — key ordering or whitespace differences will break the comparison). An X-Webhook-Timestamp header (ISO 8601) and User-Agent: Idenplane-Webhook/1.0 are also sent.

import crypto from 'crypto';

function verifyWebhookSignature(rawBody: string, signatureHeader: string, secret: string): boolean {
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
return crypto.timingSafeEqual(Buffer.from(signatureHeader), Buffer.from(expected));
}

The plaintext secret is shown exactly once, in the response body of the create/rotate call — it's stored encrypted at rest (WEBHOOK_SECRET_KEY/WEBHOOK_ENCRYPTION_SALT) and cannot be retrieved again afterward, so if you've lost it, rotate it via update rather than trying to recover it.

Test deliveries and real events use two different retry paths​

This asymmetry explains a common "it worked in the test button but not in production" (or vice versa) report:

Test delivery (POST .../webhooks/{id}/test)Real events (login, user created, etc.)
Delivery pathInline, fire-and-forget from the request handlerDurable outbox: a WebhookEvent row is written first, then picked up by a scheduler tick every 10 seconds
Retry backoff1s → 10s → 60s (4 attempts total)1s → 10s → 60s → 600s (5 attempts total)
On SSRF rejectionRetry loop stops immediately (no point retrying a policy rejection)Same — but still logged as a WebhookDelivery row
Where to check the resultGET .../webhooks/{id}/deliveries (the test call itself just returns { status: 'queued' })Same endpoint — one WebhookDelivery row per delivery attempt, not one row with an incrementing counter

The inline test-delivery schedule can be overridden via WEBHOOK_RETRY_DELAYS_MS (a JSON array of milliseconds) — mainly useful for shortening retries in CI. The durable queue's schedule is fixed in code and does not read that variable.

Delivery silently fails with "target address is not publicly routable"​

Every delivery attempt (and every redirect hop, up to 3) re-resolves the destination hostname via DNS and re-validates the resulting IP before connecting — a webhook URL that pointed somewhere public when you configured it can still be rejected at delivery time if DNS now resolves it to a private/loopback/link-local address, or if it redirects there. This is deliberate SSRF protection, not a bug, and the stored delivery response is intentionally generic (it never reveals the blocked hostname or IP). If you're intentionally delivering to an internal receiver (e.g. a self-hosted install), set WEBHOOK_ALLOW_PRIVATE_TARGETS=true.

A webhook stopped firing but the config looks right​

Check, in order: the webhook's enabled flag; whether the event type you expect is actually in its eventTypes list (delivery only happens for webhooks where eventTypes has the exact event string); and the delivery log for that webhook, which records statusCode, a truncated response body, and attempts for every try.


SMTP / Email Delivery​

Idenplane supports five email providers per realm: SMTP, Resend, SendGrid, Mailgun, and Postmark, selected via the realm's emailProvider field (emailProviderConfig holds provider-specific settings like apiKey/domain/from; SMTP instead uses the legacy smtpHost/smtpPort/smtpUser/smtpPassword/smtpFrom/smtpSecure fields directly on the realm).

Email provider not configured for this realm​

isConfigured() is provider-specific: for SMTP it just checks that smtpHost is set; for every other provider it's considered configured as long as a provider is selected (a missing API key inside emailProviderConfig will fail at send time, not at the configured-check). If emails are silently not sending, check the server log first — sendEmail() logs a warning and returns without throwing when no provider is configured, rather than failing the calling request.

Testing your configuration​

Two dedicated endpoints exist:

  • POST /admin/realms/{realm}/smtp/test — sends a fixed test message to the realm's sender address using the configured provider.
  • POST /admin/realms/{realm}/email/test with body { "to": "user@example.com" } — renders the realm's actual test-email theme template and sends it to the given address.
  • During first-run setup, before the realm exists, the setup wizard's Send Test button (POST /setup-wizard/smtp/test with { "to": "user@example.com" }) saves the form and sends a test message to that address through the SMTP settings saved in the wizard. It answers the same way; its log line starts Test email for setup wizard failed.

Both return 200 only when the provider accepted the message. A realm without usable email settings gets 400; a provider that refuses the message or cannot be reached gets 502 with a short reason (the credentials were rejected, the server could not be reached, an address was refused). The provider's own error is not returned; it is in the server log, on the line starting Test email for realm "<realm>" failed.

Common SMTP misconfigurations​

The SMTP provider (nodemailer under the hood) only treats itself as configured when smtpHost is non-empty. Double check smtpPort (587 for STARTTLS, 465 for implicit SSL) matches smtpSecure. Authentication is only attempted if smtpUser is set; leaving it blank sends unauthenticated, which most providers other than an internal relay will reject.


FAQ​

How quickly do redirect_uri and CORS webOrigins changes take effect? redirect_uri is checked against the database on every request. webOrigins (CORS) are kept in memory by every process and reloaded as soon as the database announces a change, see redirect_uri, CORS, and Origin Mismatches.

Why does my authorization request succeed but the token exchange fails with redirect_uri mismatch? /token requires the exact string you sent to /authorize, byte-for-byte. A loopback URI may use any port at /authorize, and a client with the legacy wildcard opt-in any path below a /* entry, but the token request must repeat the one that was used. See redirect_uri exactness at token exchange.

My refresh token suddenly stopped working and now the whole session is dead — why? You (or a concurrent request from the same client) reused an already-rotated refresh token. Reuse detection revokes every refresh token on that session as a compromise precaution, not just the one that was reused. See Refresh token rotation and reuse.

My LDAP sync says 0 users synced — is my directory actually empty? Not necessarily. Failed binds, a wrong usersDn, or a bad searchFilter are swallowed silently by the sync path and also report 0. Always run test-connection first. See A sync that reports 0 synced users is not proof the directory is empty.

WebAuthn registration fails immediately with an origin/verification error — what's wrong? Almost always a mismatch between BASE_URL's host/port and the realm's webAuthnRpId. The expected origin is built from BASE_URL's scheme/port plus webAuthnRpId's hostname — if webAuthnRpId is still localhost in a deployed environment, every ceremony will fail. See Origin / RP ID mismatch.

Why did my test webhook succeed (or fail) differently than the same event in production? The test button delivers inline with up to 4 attempts (1s/10s/60s backoff); real events go through a durable queue with up to 5 attempts (1s/10s/60s/600s backoff) on a 10-second scheduler tick. They're genuinely different code paths. See Test deliveries and real events use two different retry paths.

My webhook receiver is on my internal network and deliveries keep failing — why? Every delivery attempt re-resolves DNS and blocks private/loopback/link-local targets by default (SSRF protection), even if the URL was public when you first configured it. Set WEBHOOK_ALLOW_PRIVATE_TARGETS=true if that's an intentional, self-hosted setup.

Why do I get mfa_required sometimes and invalid_grant with "MFA setup required" other times? mfa_required (401, with an mfa_token) means the user already has MFA enrolled and needs to complete the challenge. invalid_grant / "MFA setup required" means the realm requires MFA but this user hasn't enrolled a TOTP device yet — different problems, different fixes.


Next Steps​

Authentication Guide OAuth 2.0 and OIDC flows, error handling, and identity providers

Configuration Options Realm, client, and provider settings referenced throughout this page

Environment Variables WEBHOOK_SECRET_KEY, REDIS_URL, and other settings referenced above

API Reference Complete REST API documentation


idenplane.com · GitHub · Discord