mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
[BUGFIX] QgsOwsConnection: use dedicated QgsDataSourceUri setters for credentials, so that userName(), etc. work without serializing/deserialing. Neeed with OAPIF source select GUI
This commit is contained in:
parent
13298bb060
commit
89de7579bf
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user