We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6fc36dc commit e24e5c7Copy full SHA for e24e5c7
src/auth/oauth2/qgso2.cpp
@@ -69,7 +69,8 @@ void QgsO2::initOAuthConfig()
69
mIsLocalHost = isLocalHost( QUrl( localpolicy.arg( mOAuth2Config->redirectPort() ) ) );
70
71
setTokenUrl( mOAuth2Config->tokenUrl() );
72
- setRefreshTokenUrl( mOAuth2Config->refreshTokenUrl() );
+ // refresh token url is marked as optional -- we use the token url if user has not specified a specific refresh URL
73
+ setRefreshTokenUrl( !mOAuth2Config->refreshTokenUrl().isEmpty() ? mOAuth2Config->refreshTokenUrl() : mOAuth2Config->tokenUrl() );
74
75
setScope( mOAuth2Config->scope() );
76
// TODO: add support to O2 (or this class?) for state query param
0 commit comments