未找到 OpenID 端点 - 依赖方超时选项

发布于 2024-12-11 18:28:20 字数 321 浏览 0 评论 0原文

我有一个依赖方和一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兔姬 2024-12-18 18:28:20

是的,这些超时可以通过 web.config 文件进行配置。下面是一个片段,其中包含您可以提出的默认值:

   <messaging>
        <untrustedWebRequest
            timeout="00:00:10"
            readWriteTimeout="00:00:01.500"

记录了完整的配置选项。

Yes, these timeouts can be configured via your web.config file. Below is a snippet, with the defaults which you can raise:

   <messaging>
        <untrustedWebRequest
            timeout="00:00:10"
            readWriteTimeout="00:00:01.500"

Full configuration options are documented.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文