Project

General

Profile

« Previous | Next » 

Revision 59615

service registration with keys enabled

View differences:

Test3Service.java
119 119
        params.add(new BasicNameValuePair("client_secret", secret));
120 120
        params.add(new BasicNameValuePair("grant_type", "refresh_token"));
121 121
        params.add(new BasicNameValuePair("refresh_token", refreshToken));
122
        params.add(new BasicNameValuePair("scope", "openid email profile offline_access"));
122
        params.add(new BasicNameValuePair("scope", "openid"));
123 123

  
124 124
        HttpResponse response = null;
125 125

  
......
166 166
        params.add(new BasicNameValuePair("client_secret", secret));
167 167
        params.add(new BasicNameValuePair("grant_type", "refresh_token"));
168 168
        params.add(new BasicNameValuePair("refresh_token", accessToken));
169
        params.add(new BasicNameValuePair("scope", "openid email profile"));
169
        params.add(new BasicNameValuePair("scope", "openid"));
170 170
        try {
171 171
            httppost.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
172 172
            //Execute and get the response.

Also available in: Unified diff