using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; namespace Win_in.Sfs.Print.Web.Pages { public class IndexModel : PrintPageModel { public void OnGet() { } public async Task OnPostLoginAsync() { await HttpContext.ChallengeAsync("oidc"); } } }