无法使用AD身份验证登录我的APP [英] Unable to Login to my APP using AD authentication

查看:72
本文介绍了无法使用AD身份验证登录我的APP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好, 

Hi Everyone, 

我在我的一个天蓝色应用程序中看到了一些真正的
奇怪的行为。我正在使用OpenID,MVC,Normal Form Login和Azure Active目录登录我的站点。当我第一次部署我的应用程序并使用AD登录时,它可以正常工作。

但是,如果我尝试通过清除所有cookie或其他浏览器关闭并打开浏览器后登录
, 它不会登录我的网站。在技​​术方面,我得到以下内容  
" Request.IsAuthenticated正在变为false或User.Identity.GetUserName
为null或userClaims?.FindFirst(" preferred_username")?. Value;这也是空的"   .. ..

However, if I try to login once closing and opening the browser by clearing all the cookies or a different browser,  It doesn't login in to my site. In technical terms I am getting the following  "Request.IsAuthenticated is getting false or User.Identity.GetUserName is null or userClaims?.FindFirst("preferred_username")?.Value; this also empty" ....

登录只能成功
新部署后的第一次。

我已按照网站上提供的文件
 

我试图解决这个问题,过去4天,请帮我解决了这个问题。

I have trying to fix this since past 4 days, Please help me to fix this issue.

谢谢

推荐答案

Hello Seshu,

Hello Seshu,

你能分享你所关注的文章吗?

Can you share the article you followed ?


这篇关于无法使用AD身份验证登录我的APP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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