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 authored and github-actions[bot] committed Feb 4, 2025
1 parent ffbca71 commit aed7be6
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 aed7be6

Please sign in to comment.