8000 增加生成授权链接方法,重定向链接可直接读取配置。 by gaigeshen · Pull Request #21 · binarywang/WxJava · GitHub
[go: up one dir, main page]

Skip to content

增加生成授权链接方法,重定向链接可直接读取配置。 #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,16 @@ WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputStream i
*/
void tagAddUsers(String tagId, List<String> userIds, List<String> partyIds) throws WxErrorException;

/**
* <pre>
* 构造oauth2授权的url连接
* </pre>
*
* @param state
* @return
*/
String oauth2buildAuthorizationUrl(String state);

/**
* <pre>
* 构造oauth2授权的url连接
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,14 @@ public void tagRemoveUsers(String tagId, List<String> userIds) throws WxErrorExc
}

@Override
public String oauth2buildAuthorizationUrl(String state) {
return this.oauth2buildAuthorizationUrl(
this.wxCpConfigStorage.getOauth2redirectUri(),
state
);
}

@Override
public String oauth2buildAuthorizationUrl(String redirectUri, String state) {
String url = "https://open.weixin.qq.com/connect/oauth2/authorize?";
url += "appid=" + wxCpConfigStorage.getCorpId();
Expand Down
0