Commit Graph

5 Commits

Author SHA1 Message Date
Miroslav Šedivý 23d8a2718e oauth: ignore email when provider reports email_verified=false.
An unverified email could match admin_emails/user_emails on providers that
let users set their own email. Only an explicit false is rejected; providers
that omit the claim are still trusted. Document the behavior.

Reported-by: Zachariah Mithani <zachariah@aplosai.com> (AploSec)
2026-10-28 17:05:56 +01:00
Seungwon Lee 1725bfa50b oauth: bind state to browser session (#708)
* oauth: bind state to browser session

Bind each authorization state to a short-lived HttpOnly cookie so callback URLs cannot create sessions in browsers that did not initiate login.

Use per-state cookie names to preserve concurrent flows and reject callback origins that cannot receive the host-only cookie.

* oauth: preserve explicit proxy redirects

Keep browser-state binding usable when TLS terminates before Neko while still rejecting callback hosts that cannot receive the login cookie.
2026-09-30 15:39:10 +02:00
Miroslav Šedivý 6bc8350213 feat: add email scope to OAuth configuration and update documentation 2026-09-24 00:18:02 +02:00
Miroslav Šedivý 3f3ae10fb9 feat: implement user email restrictions for OAuth login 2026-09-24 00:17:58 +02:00
Miroslav Šedivý 11b6c8d8f6 oauth: separate provider & service. 2026-09-24 00:16:23 +02:00