项目地址:
https://github.com/netnr/Netnr.Loginhttps://github.com/netnr/np
步骤
authorize接口:https://oapi.dingtalk.com/connect/qrconnect
获取用户授权,即页面跳转登录界面(支持扫码、密码登录两种方式)
GET请求,得到codeuser接口:https://oapi.dingtalk.com/sns/getuserinfo_bycode
根据code得到openid、nick,POST请求
使用
Install-Package Netnr.Login参考项目地址给出的示例代码