使用外部提供程序登录时增加超时
Increase the timeout when logging with external provider
我正在使用 ASP.NET Core 5 Identity 和 Google 作为外部登录。
登录 Google 后,返回我的应用程序时出现 500 错误。
在我的应用程序中访问回调 url "/signin-google" 时发生错误。
检查错误详细信息时,它说这是一个 60 秒超时错误。
如何检查真正的错误是什么?我尝试使用以下方式增加超时:
我在我的应用程序 Startup 中尝试了 ConfigureServices
方法:
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddGoogle("Google", x => {
x.ClientId = clientId;
x.ClientSecret = clientSecret;
x.RemoteAuthenticationTimeout = TimeSpan.FromSeconds(240);
});
但奇怪的是我得到了同样的 60 秒超时错误。
How to check of the real error is? I tried to increase the timeout
using:
您需要更改 BackchannelTimeout
的时间。
我正在使用 ASP.NET Core 5 Identity 和 Google 作为外部登录。
登录 Google 后,返回我的应用程序时出现 500 错误。
在我的应用程序中访问回调 url "/signin-google" 时发生错误。
检查错误详细信息时,它说这是一个 60 秒超时错误。
如何检查真正的错误是什么?我尝试使用以下方式增加超时:
我在我的应用程序 Startup 中尝试了 ConfigureServices
方法:
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddGoogle("Google", x => {
x.ClientId = clientId;
x.ClientSecret = clientSecret;
x.RemoteAuthenticationTimeout = TimeSpan.FromSeconds(240);
});
但奇怪的是我得到了同样的 60 秒超时错误。
How to check of the real error is? I tried to increase the timeout using:
您需要更改 BackchannelTimeout
的时间。