Skip to content

Commit

Permalink
[sensorthings] Fix provider does not work with oauth2 config method
Browse files Browse the repository at this point in the history
The provider was incorrectly retrieving the authcfg id key from
the layer URI

Fixes #60407
  • Loading branch information
nyalldawson committed Feb 4, 2025
1 parent 266746a commit 207a57f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 207a57f

Please sign in to comment.