Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/WM7S8.png" height="16" width="18" alt="" class="sponsor tag img">servicestack ServiceStack Identity Server插件在授权端点后无限重定向_<img Src="//i.stack.imgur.com/WM7S8.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">servicestack_Identityserver4 - Fatal编程技术网 servicestack ServiceStack Identity Server插件在授权端点后无限重定向,servicestack,identityserver4,servicestack,Identityserver4" /> servicestack ServiceStack Identity Server插件在授权端点后无限重定向,servicestack,identityserver4,servicestack,Identityserver4" />

servicestack ServiceStack Identity Server插件在授权端点后无限重定向

servicestack ServiceStack Identity Server插件在授权端点后无限重定向,servicestack,identityserver4,servicestack,Identityserver4,我正在尝试将ServiceStack.Authentication.IdentityServer插件与Identity Server 4集成 从浏览器调用受保护的ServiceStack端点时,浏览器将重定向到授权端点,如下所示 https://localhost:5001/connect/authorize?client_id=simplehr&scope=openid%20offline_access&redirect_uri=https://localhost:5004/a

我正在尝试将
ServiceStack.Authentication.IdentityServer
插件与Identity Server 4集成

从浏览器调用受保护的ServiceStack端点时,浏览器将重定向到授权端点,如下所示

https://localhost:5001/connect/authorize?client_id=simplehr&scope=openid%20offline_access&redirect_uri=https://localhost:5004/auth/IdentityServer&response_type=code%20id_token&state=8749c226e65646079c53ba403b51ef3e&nonce=291873debfd14de8b360c11cffbba3db&response_mode=form_post
在这种情况下,
https://localhost:5001
是我的身份服务器4,并且
https://localhost:5004
是我的ServiceStack服务器

完成此步骤后,浏览器将按预期向ServiceStack的IdentityServer身份验证提供程序端点发送POST请求。但是,此端点将302返回给Identity Server的授权端点。反应看起来像

Location: https://localhost:5001/connect/authorize?client_id=simplehr&scope=openid offline_access&redirect_uri=https://localhost:5004/auth/IdentityServer&response_type=code id_token&state=8749c226e65646079c53ba403b51ef3e&nonce=f13048835b6e47f09a8c86882d2db320&response_mode=form_post
因此,我的浏览器陷入无限循环


有谁能告诉我如何克服这一点吗?谢谢。

如果您对ServiceStack社区NuGet软件包有问题,请直接向项目提出问题:


还请注意,ServiceStack的最新v5.5版本包括通过.NET核心项目模板发布的信息。

您是否尝试在IdentityServer中打开一些调试信息?在Startup.cs ConfigureServices方法内的IdentityServer项目中,打开一些调试;var builder=services.AddIdentityServer(options=>{options.Events.RaiseErrorEvents=true;options.Events.RaiseInformationEvents=true;options.Events.RaiseFailureEvents=true;options.Events.RaiseSuccessEvents=true;})。AddDeveloperSigningCredential()…etc然后在Visual Studio中运行并查看其输出。