Permalink
Browse files

release Nutz-Socialauth 1.b.3

  • Loading branch information...
1 parent d4a9fe2 commit 96bd90bdcb71c3bade8662e945fe0d3ed7e5b37c @wendal wendal committed Feb 23, 2012
@@ -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
@@ -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());
@@ -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);
@@ -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;
/**

0 comments on commit 96bd90b

Please sign in to comment.