Asp.net core 在使用隐式grand flow登录到客户端vuejs应用程序后,不会从IdentityServer 4发生重定向
我在vue.js的隐式模式下遇到以下异常 无法访问此网站。位于的网页可能暂时关闭,或者可能已永久移动到新的网址。 错误\u响应\u标题\u太大\u 登录控制台Asp.net core 在使用隐式grand flow登录到客户端vuejs应用程序后,不会从IdentityServer 4发生重定向,asp.net-core,identityserver4,claims-based-identity,Asp.net Core,Identityserver4,Claims Based Identity,我在vue.js的隐式模式下遇到以下异常 无法访问此网站。位于的网页可能暂时关闭,或者可能已永久移动到新的网址。 错误\u响应\u标题\u太大\u 登录控制台 Executed action method TIS.IdentityServer.Controllers.Account.AccountController.Login (TIS.IdentityServer), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 653
Executed action method TIS.IdentityServer.Controllers.Account.AccountController.Login (TIS.IdentityServer), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 65364.2974ms.
info: Microsoft.AspNetCore.Mvc.Infrastructure.RedirectResultExecutor[1]
Executing RedirectResult, redirecting to /connect/authorize/callback?client_id=Vuejs&redirect_uri=http%3A%2F%2Flocalhost%3A8484%2Flogin&response_type=id_token%20token&scope=openid%20profile%20courses%20roles%20country%20GPSSchoolAPI&state=5b7f679b185642db87a745f649dab48f&nonce=9f222f460a974434a6d0a7179d79765a.
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
Executed action TIS.IdentityServer.Controllers.Account.AccountController.Login (TIS.IdentityServer) in 65380.1296ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'TIS.IdentityServer.Controllers.Account.AccountController.Login (TIS.IdentityServer)'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 65421.3075ms 302
配置
导出常量设置={
当局:'http://localhost:5000',
客户端id:“Vuejs”,
重定向_uri:'http://localhost:8484/login',
响应类型:“id\U令牌”,
范围:“openid档案课程角色国家GPSSchoolAPI”,
post\u注销\u重定向\u uri:'http://localhost:8484/index.html',
//userStore:new Oidc.WebStorage StateStore(),
loadUserInfo:true,
filterProtocolClaims:正确
}
我相信您正在使用应用程序的登录页面。如果是这样,您需要使用资源所有者密码流
(或)
如果您使用Identity server的登录页面(Identity server中的示例MVC应用程序),则需要按照默认设置在“/Account/login”处使其可用
(或)
如果您想要自己的identity server登录页面,可以通过
services.AddIdentityServer(setupAction =>
{
setupAction.UserInteraction.LoginUrl = "/Account#Login";
setupAction.UserInteraction.LogoutUrl = "/Account#Logout";
setupAction.UserInteraction.ErrorUrl = "/Account#Error";
})
问题出在Cookies中,由于数据的原因,Cookies的大小不断增加,在减少Cookies后,Cookies开始工作 主席先生,谢谢你的答覆。问题出现在登录之后,此时需要重定向到客户端应用程序。1.使用具有Asp.net核心标识的IdentityServer4登录屏幕。2.隐式模式,因为它是Vue.Js应用程序-在post中包含了配置。3.我正在将Vuex与OIDC一起使用。4.例外情况是在/connect/authorize/callback端点。您能告诉我们您是如何减小cookie大小的吗?或者是属于您的应用程序的一些额外数据?