You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调用oidcClient.LoginAsync()时出现“Issuer name is missing”错误求助

问题:调用oidcClient.LoginAsync()时出现"Issuer name is missing"错误
  • 我的解决方案包含9个项目,为配置Auth0,给服务器相关项目添加了Auth0-OidcClient-WinForms包,将该项目的packages.config迁移为packageReferences后,Auth0可正常运行。
  • 构建setup.exe时,出现与app.config程序集绑定相关的运行时错误,因此将其他所有项目也从packages.config迁移到packageReferences。
  • 完成所有迁移后,调用oidcClient.LoginAsync()时出现Error loading discovery document: Issuer name is missing错误。

堆栈跟踪

{System.InvalidOperationException: Error loading discovery document: Issuer name is missing
   at IdentityModel.OidcClient.OidcClient.<EnsureProviderInformationAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IdentityModel.OidcClient.OidcClient.<EnsureConfigurationAsync>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IdentityModel.OidcClient.OidcClient.<LoginAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Auth0.OidcClient.Auth0ClientBase.<LoginAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Server.Presenters.ServerConnectPresenter.<View_ContinueClicked>d__26.MoveNext() in C:\Users\test\Documents\Build-Issue\New test\myproject\Server\Presenters\ServerConnectPresenter.cs:line 327}

调用代码

var options = new Auth0ClientOptions
{
   ClientId = Constants.AUTH0_CLIENT_ID,
   Domain = Constants.AUTH0_DOMAIN,
};

var oidcClient = new Auth0Client(options);
var result = await oidClient.LoginAsync();

环境信息

  • Nuget包:Auth0-OidcClient-WinForms
  • 版本:3.5.0
  • 平台版本:.NET Framework 4.7.2

内容的提问来源于stack exchange,提问作者NNJ16

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 12:14:55