public QQAuthProvider(final OAuthConfig providerConfig) throws Exception { super(providerConfig); ENDPOINTS.put(Constants.OAUTH_AUTHORIZATION_URL, "https://graph.qq.com/oauth2.0/authorize"); ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL, "https://graph.qq.com/oauth2.0/token"); AllPerms = new String[] {"get_user_info", "get_info"}; AuthPerms = new String[] {"get_user_info", "get_info"}; authenticationStrategy = new OAuth2(config, ENDPOINTS); authenticationStrategy.setPermission(scope); authenticationStrategy.setScope(getScope()); PROFILE_URL = "https://graph.qq.com/oauth2.0/me"; }
public Net163OAuthProvider(final OAuthConfig providerConfig) { super(providerConfig); ENDPOINTS.put(Constants.OAUTH_REQUEST_TOKEN_URL, "http://api.t.163.com/oauth/request_token"); ENDPOINTS.put(Constants.OAUTH_AUTHORIZATION_URL, "http://api.t.163.com/oauth/authorize"); ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL, "http://api.t.163.com/oauth/access_token"); AllPerms = new String[] {}; AuthPerms = new String[] {}; authenticationStrategy = new OAuth1(config, ENDPOINTS); authenticationStrategy.setPermission(scope); authenticationStrategy.setScope(getScope()); PROFILE_URL = "http://api.t.163.com/users/show.json"; }