从 Azure Active Directory 重定向到我的网站时出现错误 ERR_SSL_PROTOCOL_ERROR
Azure AD 身份验证成功,但在重定向 chrome 时抛出错误“ERR_SSL_PROTOCOL_ERROR”。 以下是我的登录代码
if (Request.IsAuthenticated)
{
var claims = ClaimsPrincipal.Current.Identities.First().Claims.ToList();
//Filter specific claim
if (claims != null && User.Identity.Name != null)
{
}}
Azure AD authentication was successful but on redirect chrome throwing error "ERR_SSL_PROTOCOL_ERROR".
Below is my sign in code
if (Request.IsAuthenticated)
{
var claims = ClaimsPrincipal.Current.Identities.First().Claims.ToList();
//Filter specific claim
if (claims != null && User.Identity.Name != null)
{
}}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,Azure AD 身份验证没有任何问题。确保您的网站已安装
SSL 证书
。仅安装后,使用https 协议
的重定向 URL 就可以工作。如果安装后错误仍然存在,则其背后的一些原因如下:
要解决该错误,请执行以下解决方法:
要详细了解如何执行这些操作,请阅读以下参考资料(如果它们有帮助)。
参考资料:
如何修复 ERR_SSL_PROTOCOL_ERROR(8 个简单修复)(hostingpill.com)
<一href="https://stackoverflow.com/questions/48035192/google-chrome-gives-err-ssl-protocol-error">homestead - Google Chrome 给出 ERR_SSL_PROTOCOL_ERROR - 堆栈内存溢出
There is nothing wrong with Azure AD Authentication to my knowledge. Make sure your website has
SSL certificate
installed. After installing that only, the redirect URL withhttps protocol
works.If the error continues even after installing that, the below are some of the reasons behind it:
To resolve that error, please go through below workarounds:
To know how to do these in detail, go through below references if they are helpful.
References:
How to Fix the ERR_SSL_PROTOCOL_ERROR (8 Easy Fixes) (hostingpill.com)
homestead - Google Chrome gives ERR_SSL_PROTOCOL_ERROR - Stack Overflow