未找到 OpenID 端点 - 依赖方超时选项
我有一个依赖方和一个使用 DotNetOpenAuth 运行的提供商。问题是,当提供程序一段时间没有被访问时,它会从 IIS 中卸载以节省内存(这通常是一件好事)。但是,在这种情况下,它会导致依赖方抛出“未找到 OpenID 端点”异常。
我知道 IIS 可以配置为从不卸载应用程序,但在本例中这不是一个选项。
有没有办法增加依赖方的超时时间,让它等到提供者“醒来”而不抛出“No OpenId Endpoint Found”异常?
我以为我有“maxAuthenticationTime”属性,但我想这实际上是一个设置,规定身份验证往返总共需要多少分钟。
谢谢。
I have a Relying Party and a provider running with DotNetOpenAuth. The issue is that when the provider has not been accessed in a while it is unloaded from IIS to conserve memory (which is normally a good thing). However, in this case it causes the Relying Party to throw the "No OpenID endpoint found" exception.
I know that IIS can be configured to never unload an application, but that is not an option in this case.
Is there a way to increase the timeout on the relying party to let it wait until the provider "wakes up" and not throw the No OpenId Endpoint Found exception?.
I thought I had it with the "maxAuthenticationTime" property, but I guess this is really a setting for how many minutes in total the authentication round trip should be allowed to take.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这些超时可以通过 web.config 文件进行配置。下面是一个片段,其中包含您可以提出的默认值:
记录了完整的配置选项。
Yes, these timeouts can be configured via your web.config file. Below is a snippet, with the defaults which you can raise:
Full configuration options are documented.