File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
scribejava-core/src/main/java/com/github/scribejava/core/oauth Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,14 @@ protected OAuthRequest createRefreshTokenRequest(String refreshToken) {
148148 throw new IllegalArgumentException ("The refreshToken cannot be null or empty" );
149149 }
150150 final OAuthRequest request = new OAuthRequest (api .getAccessTokenVerb (), api .getRefreshTokenEndpoint ());
151+ final OAuthConfig config = getConfig ();
151152
152- api .getClientAuthenticationType ().addClientAuthentication (request , getConfig ());
153+ api .getClientAuthenticationType ().addClientAuthentication (request , config );
154+
155+ final String scope = config .getScope ();
156+ if (scope != null ) {
157+ request .addParameter (OAuthConstants .SCOPE , scope );
158+ }
153159
154160 request .addParameter (OAuthConstants .REFRESH_TOKEN , refreshToken );
155161 request .addParameter (OAuthConstants .GRANT_TYPE , OAuthConstants .REFRESH_TOKEN );
You can’t perform that action at this time.
0 commit comments