HttpContext.Current.GetOwinContext().Authentication.Challenge() Does not open adfs page
问题 I have an single page mvc application that works with angular js. Angular calls api from my asp mvc application including the login. I want to add single sign on to my application My angular check "GetUserRoles" function before transferring to the local login page .. What I am doing wrong, so the line HttpContext.Current.GetOwinContext().Authentication.Challenge() in UserAccountApiController does not open adfs sso page ??? UserAccountApiController [HttpPost] public bool IsLogedInRoled(NR role