UI: Add Auth and OAuth classes

Allows the ability to authenticate to a specific service.  Typically via
OAuth.
This commit is contained in:
jp9000
2019-02-06 22:24:25 -08:00
parent 1b8bc55f6a
commit 08fb29a035
10 changed files with 543 additions and 4 deletions

View File

@@ -1786,6 +1786,8 @@ void OBSBasic::OnFirstLoad()
}
}
#endif
Auth::Load();
}
void OBSBasic::DeferredLoad(const QString &file, int requeueCount)
@@ -3656,10 +3658,6 @@ void OBSBasic::closeEvent(QCloseEvent *event)
"BasicWindow", "geometry",
saveGeometry().toBase64().constData());
config_set_string(App()->GlobalConfig(),
"BasicWindow", "DockState",
saveState().toBase64().constData());
if (outputHandler && outputHandler->Active()) {
SetShowing(true);
@@ -3688,7 +3686,13 @@ void OBSBasic::closeEvent(QCloseEvent *event)
signalHandlers.clear();
Auth::Save();
SaveProjectNow();
auth.reset();
config_set_string(App()->GlobalConfig(),
"BasicWindow", "DockState",
saveState().toBase64().constData());
if (api)
api->on_event(OBS_FRONTEND_EVENT_EXIT);