public async Task <IActionResult> Accept() { ApplicationUser au = await _userManager.GetUserAsync(HttpContext.User); if (au == null) { return(LocalRedirect("/error")); } OpenIdConnectRequest request = HttpContext.GetOpenIdConnectRequest(); AuthorizeViewModel avm = await FillFromRequest(request); if (avm == null) { return(LocalRedirect("/error")); } AuthenticationTicket ticket = TicketCounter.MakeClaimsForInteractive(au, avm); Microsoft.AspNetCore.Mvc.SignInResult sr = SignIn(ticket.Principal, ticket.Properties, ticket.AuthenticationScheme); return(sr); }