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,
|
connect(mOidc.networkAccessManager(), &QNetworkAccessManager::authenticationRequired,
|
||||||
[=](QNetworkReply *reply, QAuthenticator *authenticator) {
|
[=](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) {
|
connect(&mOidc, &QOAuth2AuthorizationCodeFlow::statusChanged, [=](QAbstractOAuth::Status status) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue