return false;
}
- if (wiz->_ocWizard->currentId() == WizardCommon::Page_ShibbolethCreds) {
- // Try to find if there is a browser open and raise that instead (Issue #6105)
- const auto allWindow = qApp->topLevelWidgets();
- auto it = std::find_if(allWindow.cbegin(), allWindow.cend(), [](QWidget *w)
- { return QLatin1String(w->metaObject()->className()) == QLatin1String("OCC::ShibbolethWebView"); });
- if (it != allWindow.cend()) {
- ownCloudGui::raiseDialog(*it);
- return true;
- }
- }
-
ownCloudGui::raiseDialog(wiz->_ocWizard);
return true;
}
// bring wizard to top
_ocWizard->bringToTop();
- if (_ocWizard->currentId() == WizardCommon::Page_ShibbolethCreds || _ocWizard->currentId() == WizardCommon::Page_OAuthCreds || _ocWizard->currentId() == WizardCommon::Page_Flow2AuthCreds) {
+ if (_ocWizard->currentId() == WizardCommon::Page_OAuthCreds || _ocWizard->currentId() == WizardCommon::Page_Flow2AuthCreds) {
_ocWizard->back();
}
_ocWizard->displayError(errorMsg, _ocWizard->currentId() == WizardCommon::Page_ServerSetup && checkDowngradeAdvised(reply));
return WizardCommon::Page_OAuthCreds;
case DetermineAuthTypeJob::LoginFlowV2:
return WizardCommon::Page_Flow2AuthCreds;
- case DetermineAuthTypeJob::Shibboleth:
- return WizardCommon::Page_ShibbolethCreds;
case DetermineAuthTypeJob::WebViewFlow:
return WizardCommon::Page_WebView;
}
Page_Welcome,
Page_ServerSetup,
Page_HttpCreds,
- Page_ShibbolethCreds,
Page_OAuthCreds,
Page_Flow2AuthCreds,
Page_WebView,
propfind->setIgnoreCredentialFailure(true);
oldFlowRequired->setIgnoreCredentialFailure(true);
- connect(get, &AbstractNetworkJob::redirected, this, [this, get](QNetworkReply *, const QUrl &target, int) {
- Q_UNUSED(this)
- Q_UNUSED(get)
- Q_UNUSED(target)
- });
connect(get, &SimpleNetworkJob::finishedSignal, this, [this]() {
_getDone = true;
checkAllDone();
}
auto result = _resultPropfind;
- // OAuth > Shib > Basic
- if (_resultGet == Shibboleth && result != OAuth)
- result = Shibboleth;
- // WebViewFlow > OAuth > Shib > Basic
+ // WebViewFlow > OAuth > Basic
if (_account->serverVersionInt() >= Account::makeServerVersion(12, 0, 0)) {
result = WebViewFlow;
}
- // LoginFlowV2 > WebViewFlow > OAuth > Shib > Basic
+ // LoginFlowV2 > WebViewFlow > OAuth > Basic
if (_account->serverVersionInt() >= Account::makeServerVersion(16, 0, 0)) {
result = LoginFlowV2;
}
enum AuthType {
Basic, // also the catch-all fallback for backwards compatibility reasons
OAuth,
- Shibboleth,
WebViewFlow,
LoginFlowV2
};