Basic infrastructure.
Authentication flow.