[sensorthings] Fix provider does not work with oauth2 config method

The provider was incorrectly retrieving the authcfg id key from
the layer URI

Fixes #60407
This commit is contained in:
Nyall Dawson 2025-02-04 08:38:00 +10:00
parent 266746a21a
commit 207a57f89e

View File

@ -96,8 +96,7 @@ QgsSensorThingsSharedData::QgsSensorThingsSharedData( const QString &uri )
mGeometryType = Qgis::WkbType::NoGeometry;
}
QgsDataSourceUri dsUri;
dsUri.setEncodedUri( uri );
const QgsDataSourceUri dsUri( uri );
mAuthCfg = dsUri.authConfigId();
mHeaders = dsUri.httpHeaders();