mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
fix basic auth mode for oidc
This commit is contained in:
parent
ee6680b253
commit
0dcecdd578
1 changed files with 5 additions and 1 deletions
|
|
@ -102,7 +102,11 @@ OIDCModel::OIDCModel(const std::shared_ptr<linphone::AuthInfo> &authInfo, QObjec
|
|||
});
|
||||
connect(mOidc.networkAccessManager(), &QNetworkAccessManager::authenticationRequired,
|
||||
[=](QNetworkReply *reply, QAuthenticator *authenticator) {
|
||||
lWarning() << log().arg("authenticationRequired received but not implemented");
|
||||
lDebug() << "authenticationRequired url [" << reply->url() << "]";
|
||||
if (mOidc.clientIdentifierSharedKey().isEmpty() == false) {
|
||||
authenticator->setUser(mOidc.clientIdentifier());
|
||||
authenticator->setPassword(mOidc.clientIdentifierSharedKey());
|
||||
} else lWarning() << "client secret not found for client id [" << mOidc.clientIdentifier() << "]";
|
||||
});
|
||||
|
||||
connect(&mOidc, &QOAuth2AuthorizationCodeFlow::statusChanged, [=](QAbstractOAuth::Status status) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue