Skip to content

Commit 7a982f5

Browse files
committedOct 24, 2018
[oauth2] Fix redirect listener never starts with oauth2 grant flow authorization
1 parent 9462a7e commit 7a982f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/auth/oauth2/qgso2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ void QgsO2::initOAuthConfig()
6666
QgsDebugMsg( QStringLiteral( "localpolicy(w/port): %1" ).arg( localpolicy.arg( mOAuth2Config->redirectPort() ) ) );
6767
setLocalhostPolicy( localpolicy );
6868
setLocalPort( mOAuth2Config->redirectPort() );
69+
mIsLocalHost = isLocalHost( QUrl( localpolicy.arg( mOAuth2Config->redirectPort() ) ) );
6970

7071
setTokenUrl( mOAuth2Config->tokenUrl() );
7172
setRefreshTokenUrl( mOAuth2Config->refreshTokenUrl() );

0 commit comments

Comments
 (0)
Please sign in to comment.