public async Task OnGet() { ViewData["BootstrapAppId"] = GlobalConstants.BootstrapClientId; ViewData["BootstrapResourceUrl"] = GlobalConstants.AADGraphResourceUrl; ViewData["RedirectUrl"] = GlobalConstants.RedirectUrl; bool codeWasSupplied = !string.IsNullOrWhiteSpace(this.Request.Query["code"]); if (codeWasSupplied) { await AuthenticationHelper.InitializeTokenForUser(this.Request.Query["code"]); Requests.ClearLog(); await Requests.GrantConsents(); ViewData["Output"] = Requests.GetLog(); ViewData["Name"] = "User"; ViewData["Files"] = "File List Here"; ViewData["Users"] = "User List Here"; } }