当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
4 Star 10 Fork 2

小浪博客 / LKOAuth2
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

LKOAuth2

介绍

第三方OAuth授权快捷登录(QQ、微信、微博、等)

QQ登录已完成(正常访问)

微博登录已完成(代码正常,提交的审核信息没有通过审核)

微信登录已完成(由于缺少营业执照信息,无法提供演示)

http://oauth.lookweb.cn

输入图片说明

软件架构

项目基于ASP.NET4.0 开发 依赖第三方库:Newtonsoft.Json.dll

项目结构

输入图片说明

安装教程

调用方法 1.发起请求

输入图片说明

2.获取用户信息

输入图片说明

源码中有一个配置文件被我删除了,这里我给出这个文件的格式 AppData目录下面名为oauth.xml 的文件

<?xml version="1.0" encoding="utf-8" ?><!--第三封登录授权信息-->
<root>
  <category type="qq" show="1" name="QQ第三方登录基本信息">
    <item show="1" title="appid" notice="应用的唯一标识"></item>
    <item show="1" title="appkey" notice="appid对应的密钥"></item>
    <item show="1" title="redirect_uri" notice="成功授权后的回调地址,必须是注册appid时填写的主域名下的地址,建议设置为网站首页或网站的用户中心">http://oauth.lookweb.cn/oauth/ReturnUrl</item>
    <item show="0" title="getcodeurl" notice="获取code的URL">https://graph.qq.com/oauth2.0/authorize</item>
    <item show="0" title="get_code_url_m" notice="移动端获取code的URL">https://graph.z.qq.com/moc2/authorize</item>
    <item show="0" title="gettokenurl" notice="获取token的URL">https://graph.qq.com/oauth2.0/token</item>
    <item show="0" title="getopenidurl" notice="获取OpenID的URL">https://graph.qq.com/oauth2.0/me</item>
    <item show="0" title="getuserinfourl" notice="获取用户信息的URL">https://graph.qq.com/user/get_user_info</item>
    <item show="0" title="getunionid_url" notice="获取平台统一ID的URL">https://graph.qq.com/oauth2.0/me</item>
  </category>
  <category type="sina" show="1" name="新浪微博第三方登录基本信息">
    <item show="1" title="appid" notice="应用的唯一标识"></item>
    <item show="1" title="appkey" notice="appid对应的密钥"></item>
    <item show="1" title="redirect_uri" notice="成功授权后的回调地址,必须是注册appid时填写的主域名下的地址,建议设置为网站首页或网站的用户中心">http://oauth.lookweb.cn/oauth/ReturnUrl</item>
    <item show="0" title="getcodeurl" notice="获取code的URL">https://api.weibo.com/oauth2/authorize</item>
    <item show="0" title="gettokenurl" notice="获取token的URL">https://api.weibo.com/oauth2/access_token</item>
    <item show="0" title="gettokeninfourl" notice="查询用户access_token的授权相关信息">https://api.weibo.com/oauth2/get_token_info</item>
    <item show="0" title="get_userinfo_url" notice="查询用户基本信息接口">https://api.weibo.com/2/users/show.json</item>
    <item show="0" title="revokeoauthurl" notice="授权回收接口">https://api.weibo.com/oauth2/revokeoauth2</item>
    <item show="0" title="get_email_url" notice="获取用户的联系邮箱">https://api.weibo.com/2/account/profile/email.json</item>
  </category>
  <category type="weixin" show="1" name="微信开放平台第三方登录基本信息">
    <item show="1" title="appid" notice="应用的唯一标识"></item>
    <item show="1" title="appkey" notice="appid对应的密钥"></item>
    <item show="1" title="redirect_uri" notice="成功授权后的回调地址,必须是注册appid时填写的主域名下的地址,建议设置为网站首页或网站的用户中心">http://www.fiyta.com.cn/oauth/ReturnUrl</item>
    <item show="0" title="getcodeurl" notice="获取code的URL">https://open.weixin.qq.com/connect/qrconnect</item>
    <item show="0" title="gettokenurl" notice="获取token的URL">https://api.weixin.qq.com/sns/oauth2/access_token</item>
    <item show="0" title="refresh_token_url" notice="使用 refresh_token刷新access_token的URL">https://api.weixin.qq.com/sns/oauth2/refresh_token</item>
    <item show="0" title="getuserinfourl" notice="获取用户信息的URL">https://api.weixin.qq.com/sns/userinfo</item>
  </category>
  <category type="huawei" show="1" name="华为第三方登录基本信息">
    <item show="1" title="appid" notice="应用的唯一标识"></item>
    <item show="1" title="appkey" notice="appid对应的密钥"></item>
    <item show="1" title="redirect_uri" notice="成功授权后的回调地址,必须是注册appid时填写的主域名下的地址,建议设置为网站首页或网站的用户中心">http://oauth.lookweb.cn/oauth/ReturnUrl</item>
    <item show="0" title="get_code_url" notice="获取code的URL">https://oauth-login.cloud.huawei.com/oauth2/v2/authorize</item>
    <item show="0" title="get_token_url" notice="获取token的URL"></item>
    <item show="0" title="get_userinfo_url" notice="获取用户信息的">https://api.vmall.com/rest.php</item>
  </category>
  <category type="microsoft" show="1" name="微软第三方登录基本信息">
    <item show="1" title="appid" notice="应用的唯一标识"></item>
    <item show="1" title="appkey" notice="appid对应的密钥"></item>
    <item show="1" title="redirect_uri" notice="成功授权后的回调地址,必须是注册appid时填写的主域名下的地址,建议设置为网站首页或网站的用户中心">https://localhost:44353/oauth/ReturnUrl</item>
    <item show="0" title="get_code_url" notice="获取code的URL">https://login.microsoftonline.com/common/oauth2/v2.0/authorize</item>
    <item show="0" title="get_token_url" notice="获取token的URL">https://login.microsoftonline.com/common/oauth2/v2.0/token</item>
    <item show="0" title="get_userinfo_url" notice="获取用户信息的">https://graph.microsoft.com/v1.0/me</item>
  </category>
  <category type="mpweixin" show="1" name="微信公众平台第三方登录">
    <item show="1" title="appid" notice="应用的唯一标识"></item>
    <item show="1" title="appkey" notice="开发者密码"></item>
    <item show="1" title="redirect_uri" notice="成功授权后的回调地址,必须是注册appid时填写的主域名下的地址,建议设置为网站首页或网站的用户中心">http://oauth.lookweb.cn/oauth/ReturnUrl</item>
    <item show="0" title="get_code_url" notice="获取code的URL">https://open.weixin.qq.com/connect/oauth2/authorize</item>
    <item show="0" title="get_token_url" notice="获取token的URL">https://api.weixin.qq.com/sns/oauth2/access_token</item>
    <item show="0" title="refresh_token_url" notice="使用 refresh_token刷新access_token的URL">https://api.weixin.qq.com/sns/oauth2/refresh_token</item>
    <item show="0" title="get_userinfo_url" notice="获取用户信息的URL">https://api.weixin.qq.com/sns/userinfo</item>
  </category>
</root>

空文件

简介

第三方OAuth授权快捷登录(QQ、微信、微博、等)http://oauth.lookweb.cn 展开 收起
C#
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/lookweb/lkoauth2.git
git@gitee.com:lookweb/lkoauth2.git
lookweb
lkoauth2
LKOAuth2
master

搜索帮助