Finished redirect authentication flow for API.