Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

release Nutz-Socialauth 1.b.3

  • Loading branch information...
commit 96bd90bdcb71c3bade8662e945fe0d3ed7e5b37c 1 parent d4a9fe2
@wendal wendal authored
View
4 src/org/nutz/socialauth/alipay/AlipayAuthProvider.java
@@ -23,8 +23,8 @@ public AlipayAuthProvider(OAuthConfig providerConfig) {
super(providerConfig);
AlipayConfig.partner = providerConfig.get_consumerKey();
AlipayConfig.key = providerConfig.get_consumerSecret();
- System.out.println(AlipayConfig.partner);
- System.out.println(AlipayConfig.key);
+ //System.out.println(AlipayConfig.partner);
+ //System.out.println(AlipayConfig.key);
}
@Override
View
12 src/org/nutz/socialauth/qqweibo/QQWeiboAuthProvider.java
@@ -50,12 +50,12 @@ protected Profile doVerifyResponse(final Map<String, String> requestParams)
if (accessGrant != null) {
log.debug("Obtaining user profile");
- try {
- String presp = authenticationStrategy.executeFeed(PROFILE_URL).getResponseBodyAsString("utf8");
- System.out.println(Json.toJson(Json.fromJson(presp)));
- } catch (Throwable e) {
- e.printStackTrace();
- }
+ //try {
+ // String presp = authenticationStrategy.executeFeed(PROFILE_URL).getResponseBodyAsString("utf8");
+ //System.out.println(Json.toJson(Json.fromJson(presp)));
+ // } catch (Throwable e) {
+ // e.printStackTrace();
+ //}
Profile p = new Profile();
p.setValidatedId(requestParams.get("openid"));
p.setProviderId(getProviderId());
View
2  src/org/nutz/socialauth/sohu/SohuOAuthProvider.java
@@ -41,7 +41,7 @@ protected Profile authLogin() throws Exception {
try {
Response response = authenticationStrategy.executeFeed(PROFILE_URL);
presp = response.getResponseBodyAsString(Constants.ENCODING);
- System.out.println(response.getStatus());
+ //System.out.println(response.getStatus());
} catch (Exception e) {
throw new SocialAuthException("Error while getting profile from "
+ PROFILE_URL, e);
View
6 src/org/nutz/socialauth/taobao/TaobaoAuthProvider.java
@@ -1,15 +1,9 @@
package org.nutz.socialauth.taobao;
-import java.util.Map;
-
import org.brickred.socialauth.Profile;
-import org.brickred.socialauth.exception.ServerDataException;
-import org.brickred.socialauth.exception.SocialAuthException;
import org.brickred.socialauth.oauthstrategy.OAuth2;
import org.brickred.socialauth.util.Constants;
import org.brickred.socialauth.util.OAuthConfig;
-import org.brickred.socialauth.util.Response;
-import org.nutz.json.Json;
import org.nutz.socialauth.AbstractOAuthProvider;
/**
Please sign in to comment.
Something went wrong with that request. Please try again.