Authentication flow.