Reference to type 'AuthenticationOptions' claims it is defined in 'Microsoft.AspNetCore.Authentication', but it could not be found

南楼画角 提交于 2019-12-12 04:06:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!