本文介绍了对类型"AuthenticationOptions"的引用声称它在"Microsoft.AspNetCore.Authentication"中定义,但找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行'UseIdentityServerAuthentication'并传递IdentityServerAuthenticationOptions并在Asp.Net Core 2中得到此错误.

I'm trying to run 'UseIdentityServerAuthentication' and pass in IdentityServerAuthenticationOptions and get this error in Asp.Net Core 2.

在线查看,这似乎是Asp.Net Core 2 Preview 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.

推荐答案

我认为您想要的是IdentityOptions,可在 https://github.com/aspnet/Identity/blob/eb3ff7fc32dbfff65a1ba6dfdca16487e0f6fc41/src/Microsoft.Extensions.IdentityOption.Core/Ice .它应该在Microsoft.AspNetCore.Identity Nuget程序包中可用.

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.

这篇关于对类型"AuthenticationOptions"的引用声称它在"Microsoft.AspNetCore.Authentication"中定义,但找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 08:36