AppleID login looping after macOS Mohave upgrade
(Note: Redirected here from macOS community)
I am attempting to log into iCloud on iMac that was just upgraded to Mohave. I enter my correct account ID, my correct password, and enter the 6 digit code from my iPhone (two factor auth). The UI shows a spinning circle for a moment or so, and then goes right back to prompting for my user ID, password and a new 6 digit code, over, and over, and over. I know iCloud id not logged in as none of the services are enabled. I even entered a known bad password once to make sure the iCloud login was even working and it immediately came back with an invalid password error, so I know I am hitting the iCloud server.
I have rebooted the machine, tried both wired Ethernet and WiFi, and same problem.
Any ideas?
iMac with Retina 5K display, macOS Mojave (10.14)