Skip to content

Commit

Permalink
[BUGFIX] QgsOwsConnection: use dedicated QgsDataSourceUri setters for…
Browse files Browse the repository at this point in the history
… credentials, so that userName(), etc. work without serializing/deserialing. Neeed with OAPIF source select GUI
  • Loading branch information
rouault authored and nyalldawson committed Oct 26, 2019
1 parent e75343e commit 1981899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsowsconnection.cpp
Expand Up @@ -54,14 +54,14 @@ QgsOwsConnection::QgsOwsConnection( const QString &service, const QString &connN
if ( !username.isEmpty() )
{
// check for a password, if none prompt to get it
mUri.setParam( QStringLiteral( "username" ), username );
mUri.setParam( QStringLiteral( "password" ), password );
mUri.setUsername( username );
mUri.setPassword( password );
}

QString authcfg = settings.value( credentialsKey + "/authcfg" ).toString();
if ( !authcfg.isEmpty() )
{
mUri.setParam( QStringLiteral( "authcfg" ), authcfg );
mUri.setAuthConfigId( authcfg );
}
mConnectionInfo.append( ",authcfg=" + authcfg );

Expand Down

0 comments on commit 1981899

Please sign in to comment.