|
@@ -44,7 +44,6 @@ QgsAuthOAuth2Config::QgsAuthOAuth2Config( QObject *parent ) |
|
|
connect( this, &QgsAuthOAuth2Config::usernameChanged, this, &QgsAuthOAuth2Config::configChanged ); |
|
|
connect( this, &QgsAuthOAuth2Config::passwordChanged, this, &QgsAuthOAuth2Config::configChanged ); |
|
|
connect( this, &QgsAuthOAuth2Config::scopeChanged, this, &QgsAuthOAuth2Config::configChanged ); |
|
|
connect( this, &QgsAuthOAuth2Config::stateChanged, this, &QgsAuthOAuth2Config::configChanged ); |
|
|
connect( this, &QgsAuthOAuth2Config::apiKeyChanged, this, &QgsAuthOAuth2Config::configChanged ); |
|
|
connect( this, &QgsAuthOAuth2Config::persistTokenChanged, this, &QgsAuthOAuth2Config::configChanged ); |
|
|
connect( this, &QgsAuthOAuth2Config::accessMethodChanged, this, &QgsAuthOAuth2Config::configChanged ); |
|
@@ -187,14 +186,6 @@ void QgsAuthOAuth2Config::setScope( const QString &value ) |
|
|
emit scopeChanged( mScope ); |
|
|
} |
|
|
|
|
|
void QgsAuthOAuth2Config::setState( const QString &value ) |
|
|
{ |
|
|
QString preval( mState ); |
|
|
mState = value; |
|
|
if ( preval != value ) |
|
|
emit stateChanged( mState ); |
|
|
} |
|
|
|
|
|
void QgsAuthOAuth2Config::setApiKey( const QString &value ) |
|
|
{ |
|
|
QString preval( mApiKey ); |
|
@@ -253,7 +244,6 @@ void QgsAuthOAuth2Config::setToDefaults() |
|
|
setUsername( QString() ); |
|
|
setPassword( QString() ); |
|
|
setScope( QString() ); |
|
|
setState( QString() ); |
|
|
setApiKey( QString() ); |
|
|
setPersistToken( false ); |
|
|
setAccessMethod( QgsAuthOAuth2Config::Header ); |
|
@@ -278,7 +268,6 @@ bool QgsAuthOAuth2Config::operator==( const QgsAuthOAuth2Config &other ) const |
|
|
&& other.username() == this->username() |
|
|
&& other.password() == this->password() |
|
|
&& other.scope() == this->scope() |
|
|
&& other.state() == this->state() |
|
|
&& other.apiKey() == this->apiKey() |
|
|
&& other.persistToken() == this->persistToken() |
|
|
&& other.accessMethod() == this->accessMethod() |
|
@@ -410,7 +399,6 @@ QVariantMap QgsAuthOAuth2Config::mappedProperties() const |
|
|
vmap.insert( QStringLiteral( "requestTimeout" ), this->requestTimeout() ); |
|
|
vmap.insert( QStringLiteral( "requestUrl" ), this->requestUrl() ); |
|
|
vmap.insert( QStringLiteral( "scope" ), this->scope() ); |
|
|
vmap.insert( QStringLiteral( "state" ), this->state() ); |
|
|
vmap.insert( QStringLiteral( "tokenUrl" ), this->tokenUrl() ); |
|
|
vmap.insert( QStringLiteral( "username" ), this->username() ); |
|
|
vmap.insert( QStringLiteral( "version" ), this->version() ); |
|
|