问题
I'm trying to run 'UseIdentityServerAuthentication' and pass in IdentityServerAuthenticationOptions and get this error in Asp.Net Core 2.
Looking online it appears this was on the roadmap for Asp.Net Core 2 Preview 2, I'm running the latest release version of it so I thought it would be available by now.
回答1:
I think what you want is IdentityOptions, available at https://github.com/aspnet/Identity/blob/eb3ff7fc32dbfff65a1ba6dfdca16487e0f6fc41/src/Microsoft.Extensions.Identity.Core/IdentityOptions.cs. It should be available in the Microsoft.AspNetCore.Identity Nuget package.
来源:https://stackoverflow.com/questions/45997634/reference-to-type-authenticationoptions-claims-it-is-defined-in-microsoft-asp