Issue #940060 by Jon Pugh, univate, justondoge, DamienMcKenna: Pass the current domain when authenticating.