Esempio n. 1
0
 /// <summary>
 /// Obtain a login ticket and login with it.
 /// </summary>
 private void HandleTicketLoginStep()
 {
     m_currentStep = KwsLoginStep.Ticket;
     m_ticketQuery = new WmLoginTicketQuery();
     m_ticketQuery.Submit(Wm.KmodBroker, KwmCfg.Cur, HandleTicketLoginResult);
 }
Esempio n. 2
0
 /// <summary>
 /// Notify the client that we need a password.
 /// </summary>
 private void HandlePwdLoginStep()
 {
     m_currentStep        = KwsLoginStep.Pwd;
     m_ks.PwdRequiredFlag = true;
     m_kws.OnStateChange(WmStateChange.Transient);
 }
Esempio n. 3
0
 /// <summary>
 /// This method is called by the workspace state machine to indicate
 /// that the workspace is logged out.
 /// </summary>
 public void ResetOnLogout()
 {
     m_currentStep = KwsLoginStep.None;
     m_ks.ResetOnLogout();
     ClearTicketQuery();
 }
Esempio n. 4
0
 /// <summary>
 /// Send the cached credentials to the KCD.
 /// </summary>
 private void HandleCachedLoginStep()
 {
     m_currentStep = KwsLoginStep.Cached;
     SendLoginCommand();
 }
Esempio n. 5
0
 /// <summary>
 /// Prompt the user for a password and login with it. 'failedFlag' is
 /// true if the last password provided is wrong.
 /// </summary>
 private void HandlePwdLoginStep(bool failedFlag)
 {
     m_currentStep = KwsLoginStep.Pwd;
     m_pwdRequest = new LoginHandlerPwdPromptGer(this, m_kws.CoreData.Credentials.KwsName, m_kws.CoreData.Credentials.Pwd, failedFlag);
     m_kws.PostGuiExecRequest(m_pwdRequest);
 }
Esempio n. 6
0
 /// <summary>
 /// Obtain a login ticket and login with it.
 /// </summary>
 private void HandleTicketLoginStep(WmWinRegistry registry)
 {
     m_currentStep = KwsLoginStep.Ticket;
     m_ticketQuery = new WmLoginTicketQuery();
     m_ticketQuery.Submit(m_wm.KmodBroker, registry, HandleTicketLoginResult);
 }
Esempio n. 7
0
 /// <summary>
 /// Send the cached credentials to the KAS.
 /// </summary>
 private void HandleCachedLoginStep()
 {
     m_currentStep = KwsLoginStep.Cached;
     SendLoginCommand();
 }
Esempio n. 8
0
 /// <summary>
 /// Cancel and clear the ticket query and the password request, if
 /// required and set the current login step to None.
 /// </summary>
 public void ClearAllQueries()
 {
     m_currentStep = KwsLoginStep.None;
     ClearTicketQuery();
     ClearPwdRequest();
 }
Esempio n. 9
0
 /// <summary>
 /// Obtain a login ticket and login with it.
 /// </summary>
 private void HandleTicketLoginStep()
 {
     m_currentStep = KwsLoginStep.Ticket;
     m_ticketQuery = new WmLoginTicketQuery();
     m_ticketQuery.Submit(Wm.KmodBroker, KwmCfg.Cur, HandleTicketLoginResult);
 }
Esempio n. 10
0
 /// <summary>
 /// Notify the client that we need a password.
 /// </summary>
 private void HandlePwdLoginStep()
 {
     m_currentStep = KwsLoginStep.Pwd;
     m_ks.PwdRequiredFlag = true;
     m_kws.OnStateChange(WmStateChange.Transient);
 }
Esempio n. 11
0
 /// <summary>
 /// This method is called by the workspace state machine to indicate
 /// that the workspace is logged out.
 /// </summary>
 public void ResetOnLogout()
 {
     m_currentStep = KwsLoginStep.None;
     m_ks.ResetOnLogout();
     ClearTicketQuery();
 }