/// <summary> /// Displays a pop up to login the user. An authentication Cookie is returned if the user is sucessfully authenticated. /// </summary> /// <param name="targetSiteUrl"></param> /// <param name="popUpWidth"></param> /// <param name="popUpHeight"></param> /// <returns></returns> public static CookieCollection GetAuthenticatedCookies(string targetSiteUrl, string username, string password) { CookieCollection authCookie = null; using (ClaimsWebAuth webAuth = new ClaimsWebAuth(targetSiteUrl, username, password)) { authCookie = webAuth.Login(); } return authCookie; }
/// <summary> /// Displays a pop up to login the user. An authentication Cookie is returned if the user is sucessfully authenticated. /// </summary> /// <param name="targetSiteUrl"></param> /// <param name="popUpWidth"></param> /// <param name="popUpHeight"></param> /// <returns></returns> public static CookieCollection GetAuthenticatedCookies(string targetSiteUrl, string username, string password) { CookieCollection authCookie = null; using (ClaimsWebAuth webAuth = new ClaimsWebAuth(targetSiteUrl, username, password)) { authCookie = webAuth.Login(); } return(authCookie); }