authentication flow for tasks