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 !
1.2 KiB
Please send pull requests if CAS login does not work.
Login style
CAS signs in by full-page redirect: the browser leaves WeKan for the CAS login
form and comes back to the same page, which finishes the login and shows any
error on the sign-in page. To open the CAS form in a popup instead, set
"popup": true in both cas and public.cas of METEOR_SETTINGS. A popup is
blocked in iframes and on some phones, and a CAS server's
Cross-Origin-Opener-Policy can cut it off from WeKan so the login never
finishes, which is why redirect is the default (before 2026-10-08 it was the
popup, and a redirect login could not finish at all).
Wekan clientside code is at wekan/client/components/main/layouts.*
Wekan serverside code is at:
wekan/server/authentication.jsat bottomwekan/packages/*cas*/*
Originally before moving to wekan/packages/*cas*/* CAS code was at https://github.com/wekan/meteor-accounts-cas
Integration tests
See local login protocol tests for example identities, actual request/response checks, failure cases and deployment limitations.