From 0dcecdd57877b7b858ef28aa3d72064455bb6d7c Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 15 Apr 2025 17:48:47 -0700 Subject: [PATCH] fix basic auth mode for oidc --- Linphone/model/auth/OIDCModel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Linphone/model/auth/OIDCModel.cpp b/Linphone/model/auth/OIDCModel.cpp index ba6e5a77a..97dab52df 100644 --- a/Linphone/model/auth/OIDCModel.cpp +++ b/Linphone/model/auth/OIDCModel.cpp @@ -102,7 +102,11 @@ OIDCModel::OIDCModel(const std::shared_ptr &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) {