成功登录后,Active Directory不会重定向。 [英] Active Directory dont redirect after successfully login.

查看:379
本文介绍了成功登录后,Active Directory不会重定向。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,有人可以帮助我吗?解决此异常。

Hi everibody someone can help me to  solve this exception.

该异常仅在QA ENV中的某些计算机上显示,登录成功后,页面不会重定向到我的主页面,如果我手动更改URI,则用户成功登录in。

the exception shows only in some computers in QA ENV, after login successfully, the page dont redirect to my main page, if i change manually the URI the user is successfully logged in.

这是我在AppSettings.json上的配置,在azure portal我注册了calbackpath。

this is my configuration on AppSettings.json, in azure portal i´m registered the calbackpath.

异常 

Exception: Correlation failed.
Unknown location

Exception: An error was encountered while handling the remote login.
Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync()


Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync()
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

推荐答案

您好EduardoGonzálezSantiago,

Hi Eduardo González Santiago,

您能否查看服务主管的回复网址。 Azure AD对用户进行身份验证,并在必要时要求用户授予该应用程序的权限。它将授权代码返回到应用程序的回复URL。根据请求的
response_mode,Azure AD会以查询字符串或发布数据的形式发回数据。回复网址应与您的本地应用程序网址匹配。

Could you please check the Reply URL of service principal. Azure AD authenticates the user, and, if necessary, asks the user to grant permission to the app. It returns the authorization code to the Reply URL of your application. Depending on the requested response_mode, Azure AD either sends back the data in query string or as post data. Reply URL should match with your local application URL.

请查看以下回复网址的屏幕截图,我的本地应用程序正在端口上运行(https:// localhost:44322 /) 

Please check the below screenshot of Reply URL, my local application is running on the port(https://localhost:44322/) 

我希望这会有所帮助。


这篇关于成功登录后,Active Directory不会重定向。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆