issue #39 添加oauth2的支持

This commit is contained in:
Daniel Qian
2014-11-26 22:07:13 +08:00
parent 4d8f9ffd8e
commit 7b92a14f1c
7 changed files with 273 additions and 0 deletions

View File

@@ -128,4 +128,12 @@ public class WxConsts {
/** 弹出地理位置选择器 */
public static final String LOCATION_SELECT = "location_select";
///////////////////////
// oauth2网页授权的scope
///////////////////////
/** 不弹出授权页面直接跳转只能获取用户openid */
public static final String OAUTH2_SCOPE_BASE = "snsapi_base";
/** 弹出授权页面可通过openid拿到昵称、性别、所在地。并且即使在未关注的情况下只要用户授权也能获取其信息 */
public static final String OAUTH2_SCOPE_USER_INFO = "snsapi_userinfo";
}