Every login that chooses between a popup and a redirect opened a popup by
default. Google's sign-in pages, and other identity providers', can send
Cross-Origin-Opener-Policy, which makes Meteor's popup look closed at
once: the login was tried before the provider answered, and the user
was back on the sign-in page with no error. Popups are also blocked in
iframes and on some phones. The full-page redirect has no popup to lose.
- OAUTH2_LOGIN_STYLE (OAuth2/OIDC): redirect unless it says popup, in the
server, the Admin Panel catalog and the samples.
- OAUTH_PROVIDERS_LOGIN_STYLE (Google, GitHub, Facebook, X, Meteor
Developer, Weibo, Meetup): redirect by default, in the code, Dockerfile,
snap, Sandstorm package and samples.
- SAML: both identity-provider profiles log in by redirect;
SAML_LOGIN_FLOW=popup still chooses the popup, and the client no longer
falls back to a popup while the configuration loads.
- CAS: redirects unless "popup": true. Its redirect could never finish:
nothing called Meteor.initCas, which the package now does at startup.
The sign-in page also passed username and password as loginWithCas's
options and callback, so its callback never ran, and the CAS redirect
page echoed the request address into HTML unescaped.
A redirect login's error now reaches the reloaded sign-in page, from
accounts-oauth's page-load hook and the SAML and CAS events, instead of
the page coming back silently.
Verified against a freshly built and prepared bundle with the local
identity-provider suite and no login style set: OIDC, SAML, CAS and all
seven Meteor providers log in by redirect, and each refusal is shown on
the sign-in page (31 of 31 with Chromium). Its LDAP wrong-password case
expected wording that changed in 679a8b3499 and is corrected.
Thanks to xet7 !
The production Caddyfile in the Meteor 3 Docker docs left the headers to
Caddy's defaults, so behind CloudFlare WeKan saw a CloudFlare edge
address as every visitor, and with no HTTP_FORWARDED_COUNT the proxy's
own address: all users shared the login cookie refresh limit of 30 per
10 seconds, which signs users out at busy times and sends a Google login
back to the sign-in page. Examples that read CF-Connecting-IP trusted it
from anybody who connected.
The global options now trust CloudFlare's published ranges, and only
those, through client_ip_headers CF-Connecting-IP, so grey cloud sites
and direct connections use their own address. Shared snippets give every
WeKan site the same headers - X-Forwarded-Proto https and the visitor's
address as the only X-Forwarded-For and X-Real-IP - and the container
template sets HTTP_FORWARDED_COUNT=1. Sandstorm gets its own snippet that
sets X-Real-IP, which Sandstorm believes from a loopback address, and the
Sandstorm docs explain how its gateway routes by Host, takes https from
BASE_URL and finds published sites by their sandstorm-www TXT record.
Both Caddyfiles were validated with caddy adapt, and the headers checked
against a live Caddy.
Thanks to xet7 !
Use the Markdown textarea for every editor. Remove the retired environment and Snap options from server settings, all platform launchers, build scripts and current documentation. Keep released and archived changelog entries intact.
Keep notification HTML escaping independent of editor configuration, preserve attachment metadata and mention behavior, and cover Markdown and emoji round trips in browser tests. Also import the translator used by attachment error handlers.
Thanks to xet7 !