Found in the production smoke test: signup bp-smoketest created the organization, the user and the ERP customer, but no invitation mail went out. The audit still said keycloak.invite_sent.
Cause: portal-prod allows only the auth callback as a redirect URI, so execute-actions-email?redirect_uri=…/start?invited=1 got a 400. CreateOrgAndInvite dropped that error.
InviteResult.MailError, with Keycloak's response body.
The registry logs keycloak invitation mail not sent and audits keycloak.invite_mail_failed instead of invite_sent.
Tests: stub KC answering 400 (the adapter still returns the org/user and sets MailError), server audit (eachStore), and a Mock.FailMail hook.
The realm fix (/start* in the redirect URIs) is in orca-platform.
Found in the production smoke test: signup `bp-smoketest` created the organization, the user and the ERP customer, but no invitation mail went out. The audit still said `keycloak.invite_sent`.
Cause: `portal-prod` allows only the auth callback as a redirect URI, so `execute-actions-email?redirect_uri=…/start?invited=1` got a 400. `CreateOrgAndInvite` dropped that error.
- `InviteResult.MailError`, with Keycloak's response body.
- The registry logs `keycloak invitation mail not sent` and audits **`keycloak.invite_mail_failed`** instead of `invite_sent`.
- Tests: stub KC answering 400 (the adapter still returns the org/user and sets MailError), server audit (`eachStore`), and a `Mock.FailMail` hook.
The realm fix (`/start*` in the redirect URIs) is in orca-platform.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
CreateOrgAndInvite swallowed a failed execute-actions-email and the
registry audited keycloak.invite_sent anyway. On production the invite
client did not allow the /start redirect, Keycloak answered 400, and
nobody could tell. The result now carries MailError (with Keycloak's
answer), the registry logs it and audits keycloak.invite_mail_failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang
merged commit 7834907562 into main2026-09-24 11:50:23 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found in the production smoke test: signup
bp-smoketestcreated the organization, the user and the ERP customer, but no invitation mail went out. The audit still saidkeycloak.invite_sent.Cause:
portal-prodallows only the auth callback as a redirect URI, soexecute-actions-email?redirect_uri=…/start?invited=1got a 400.CreateOrgAndInvitedropped that error.InviteResult.MailError, with Keycloak's response body.keycloak invitation mail not sentand auditskeycloak.invite_mail_failedinstead ofinvite_sent.eachStore), and aMock.FailMailhook.The realm fix (
/start*in the redirect URIs) is in orca-platform.🤖 Generated with Claude Code
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB