Calendar connections to Exchange on premises (EWS) and Microsoft 365 / Exchange Online (Graph) that web applications get from the server, so that they hold no credential themselves.
| Id | exchange |
|---|---|
| Role | exchange or admin |
| Page | Plugins > Open or /plugins/exchange/ |
| Parts | vibecat-exchange.jar (valve and API, in runtime or in lib of a plain Tomcat 10 / 11) and vibemosphere-exchange.jar (profiles page, in plugins) |
In the administration open Plugins, select the row of this plug-in and press Open. The page opens in an overlay dialog: close it with the X at the top right, with Esc or by clicking outside; Open in a new tab next to the title shows it full size.
New profile defines one connection; Test checks it. A web application gets the profiles that name its context path.
Sign-in of a profile:
auth: aam): the token comes from the AAM plug-in. Application permission Calendars.ReadWrite (Place.Read.All for the room list); EWS Online needs full_access_as_app and impersonation.
Secrets are stored AES-GCM encrypted in plugin-data\exchange\profiles.json (key in master.key). A stored secret is dropped when the server address or account of the profile changes.
ExchangeConnections all = (ExchangeConnections) request.getAttribute(Exchange.ATTRIBUTE); ExchangeConnection x = all.connection("onprem"); x.busy("room1@contoso.com", from, to);
Compile against the jar, but do not put it into WEB-INF/lib.
webapps (empty = nobody), mailboxes and readOnly are enforced by the connection. This is configuration, not a sandbox.