{"repo":"myvas/AspNetCore.Authentication.WeixinAuth","free":true,"listed":false,"github":"https://github.com/myvas/AspNetCore.Authentication.WeixinAuth","clone":"git clone https://github.com/myvas/AspNetCore.Authentication.WeixinAuth.git","description":"An ASP.NET Core authentication middleware: WeixinAuth for https://mp.weixin.qq.com （微信公众平台/网页授权登录）","language":"C#","stars":41,"topics":["aspnetcore","authentication","middleware","weixin","weixinauth","myvas","aspnet","oauth2","netstandard20","netcoreapp30"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Myvas.AspNetCore.Authentication Family QQConnect: Here WeixinOpen: Here WeixinAuth: this repo What's this? An ASP.NET Core authentication middleware for https://mp.weixin.qq.com （微信公众平台/网页授权登录） 须微信公众平台（mp.weixin.qq.com）已认证的服务号（或测试号）。 用户可在微信客户端访问网站时自动登入网站。换而言之，用户在微信客户端中访问网页时，可以通过此组件Challenge获取用户的OpenId或UnionId，据此可以识别用户。 How to Use? 0.Create account （1）在微信公众平台(https://mp.weixin.qq.com)上创建账号。 微信公众平台/网页授权获取用户信息，须在微信公众平台（mp.weixin.qq.com）上开通服务号，并认证。 注意：订阅号无网页授权权限，即使是已认证的订阅号也不行！ （2）配置功能权限：微信公众平台-已认证服务号/开发/接口权限/... - 开通功能：网页服务/网页授权获取用户基本信息。 - 设置网页授权域名：例如，auth.myvas.com。 - 将文件MP verify xxxxxxxxx.txt上传至 wwwroot 目录下。 （3）当然，也可以在公众平台测试号上测试：微信公众平台-测试账号/开发/开发者工具/公众平台测试号/... - 开通功能：网页服务/网页授权获取用户基本信息。 - 设置授权回调页面域名：例如，auth.myvas.com。 1.nuget Myvas.AspNetCore.Authentication.WeixinAuth 2.Configure 3.ConfigureServices Dev Visual Studio 2022 .NET 9.0, 8.0, 7.0, 6.0, 5.0, 3.1 微信开发者工具 Demo Here","default_branch":null,"files":null,"tree":[],"storefront":"/r/myvas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/myvas/AspNetCore.Authentication.WeixinAuth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}