Since we have no automated tests of authentication use scenarios, this pull request will have to be evaluated by code review and by interactive testing.  My interactive test time is very limited right now, so this will be delayed until I've completed the review of the two preceding pull requests.