| 30 | } |
| 31 | |
| 32 | void AuthFlow::nextStep() { |
| 33 | if(m_steps.size() == 0) { |
| 34 | // we got to the end without an incident... assume this is all. |
| 35 | m_currentStep.reset(); |
| 36 | succeed(); |
| 37 | return; |
| 38 | } |
| 39 | m_currentStep = m_steps.front(); |
| 40 | qDebug() << "AuthFlow:" << m_currentStep->describe(); |
| 41 | m_steps.pop_front(); |
| 42 | connect(m_currentStep.get(), &AuthStep::finished, this, &AuthFlow::stepFinished); |
| 43 | connect(m_currentStep.get(), &AuthStep::showVerificationUriAndCode, this, &AuthFlow::showVerificationUriAndCode); |
| 44 | connect(m_currentStep.get(), &AuthStep::hideVerificationUriAndCode, this, &AuthFlow::hideVerificationUriAndCode); |
| 45 | |
| 46 | m_currentStep->perform(); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | QString AuthFlow::getStateMessage() const { |