private bool Authenticate(string username, string password) { KeyAuthentication keyAuth = new KeyAuthentication(username, password); if (string.IsNullOrEmpty(keyAuth.KeyGuid)) { _pgt = string.Empty; return(false); } else { _keyGuid = new Guid(keyAuth.KeyGuid); _pgt = keyAuth.TicketGrantingTicket; return(true); } }
private KeyLoginResponce LoginUser(string username, string password, string targetService) { if (targetService == null) { targetService = ""; } KeyLoginResponce rtn = new KeyLoginResponce(); rtn.LoginSuccess = false; KeyAuthentication objKey = new KeyAuthentication(username, password, targetService); if (!String.IsNullOrEmpty(objKey.KeyGuid)) { rtn.LoginSuccess = true; rtn.GUID = objKey.KeyGuid; rtn.ProxyTicket = objKey.ProxyTicket; } return(rtn); }
private KeyLoginResponce LoginUser(string username, string password, string targetService) { if (targetService == null) targetService = ""; KeyLoginResponce rtn = new KeyLoginResponce(); rtn.LoginSuccess = false; KeyAuthentication objKey = new KeyAuthentication(username, password, targetService); if (!String.IsNullOrEmpty(objKey.KeyGuid)) { rtn.LoginSuccess = true; rtn.GUID = objKey.KeyGuid; rtn.ProxyTicket = objKey.ProxyTicket; } return rtn; }