issue #39 企业号添加oauth2的支持

This commit is contained in:
Daniel Qian
2014-11-28 16:22:02 +08:00
parent 0d6712f709
commit 806447abf1
11 changed files with 206 additions and 48 deletions

View File

@ -16,11 +16,12 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
protected String aesKey;
protected int expiresIn;
protected String oauth2redirectUri;
protected String http_proxy_host;
protected int http_proxy_port;
protected String http_proxy_username;
protected String http_proxy_password;
protected String oauth2redirectUri;
public void updateAccessToken(WxAccessToken accessToken) {
updateAccessToken(accessToken.getAccessToken(), accessToken.getExpiresIn());

View File

@ -16,9 +16,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
/**
* @author Daniel Qian
*/
public class WxMpDemoServer {
private static WxMpConfigStorage wxMpConfigStorage;

View File

@ -22,9 +22,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
/**
* @author Daniel Qian
*/
public class WxMpOAuth2Servlet extends HttpServlet {
protected WxMpService wxMpService;