Split the OAuth-login method in two.

Add unauthenticated login mechanism.