Skip to content
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

WechatOpenOAuth中代码BuildAuthorizeParams不需要UrlEncode #17

Open
HZ-GeLiang opened this issue Aug 19, 2022 · 0 comments
Open

WechatOpenOAuth中代码BuildAuthorizeParams不需要UrlEncode #17

HZ-GeLiang opened this issue Aug 19, 2022 · 0 comments

Comments

@HZ-GeLiang
Copy link

HZ-GeLiang commented Aug 19, 2022

第一步获得扫一扫的登录步骤中
["redirect_uri"] = System.Web.HttpUtility.UrlEncode(oauthConfig.RedirectUri),
需要改成
["redirect_uri"] = oauthConfig.RedirectUri

微信文档中描述是要编码一次是对的, 这里要去掉编码是因为 在写了 UrlEncode 之后, 实际会被 UrlEncode 2次, 所以, 源码的这个地方不需要 UrlEncode

注; 我运行的是 MrHuo.OAuth.NetCoreApp 项目

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant