EOH.OAuth.Extensions 0.1.2024.509-beta1413

This is a prerelease version of EOH.OAuth.Extensions.
dotnet add package EOH.OAuth.Extensions --version 0.1.2024.509-beta1413                
NuGet\Install-Package EOH.OAuth.Extensions -Version 0.1.2024.509-beta1413                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EOH.OAuth.Extensions" Version="0.1.2024.509-beta1413" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EOH.OAuth.Extensions --version 0.1.2024.509-beta1413                
#r "nuget: EOH.OAuth.Extensions, 0.1.2024.509-beta1413"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EOH.OAuth.Extensions as a Cake Addin
#addin nuget:?package=EOH.OAuth.Extensions&version=0.1.2024.509-beta1413&prerelease

// Install EOH.OAuth.Extensions as a Cake Tool
#tool nuget:?package=EOH.OAuth.Extensions&version=0.1.2024.509-beta1413&prerelease                

EOH.OAuth

第三方 OAuth2 授权登录,QQ、微信开放平台(Weixin)、微信公众平台(WeixinMP)、微博(Weibo)、淘宝(Taobao)、支付宝(Alipay)、钉钉(DingTalk)、飞书(Feishu)、码云(Gitee)、GitHub、微软(Microsoft )、StackOverflow、谷歌(Google)

安装 (NuGet)

Install-Package EOH.OAuth.Extensions

支持第三方登录

三方 参考文档 应用申请
QQ 参考文档 应用申请
微信开放平台(WeixinOpen) 参考文档 应用申请
微信公众平台(WeixinMP) 参考文档 应用申请
微博(Weibo) 参考文档 应用申请
淘宝(Taobao) 参考文档 应用申请
支付宝(Alipay) 参考文档 应用申请
钉钉(DingTalk) 参考文档 应用申请
飞书(Feishu) 参考文档 应用申请
码云(Gitee) 参考文档 应用申请
GitHub 参考文档 应用申请
微软(Microsoft) 参考文档 应用申请
Stack Overflow 参考文档 应用申请
谷歌(Google) 参考文档 应用申请

功能

  • 微信开放平台(WeixinOpen)
  • 微信公众平台(WeixinMP)
  • 微博(Weibo)
  • 淘宝(Taobao)
  • 支付宝(Alipay)
  • 钉钉(DingTalk)
  • 飞书(Feishu)
  • 码云(Gitee)
  • GitHub
  • 微软(Microsoft)
  • Stack Overflow
  • 谷歌(Google)

变更

  • 2024.05.07
    • 初步完成OAuth授权登录服务

使用

//获取三方登录授权地址
var service = new OAuthLoginService(httpClientFactory, options);
service.OptionsFuncCall = (OAuthType type) => type switch
            {
                OAuthType.WeixinMP => new OAuthOptions
                {
                    AppId = "AppId",
                    AppKey = "AppKey",
                    RedirectUri = "RedirectUri",
                    Scope = "snsapi_login"
                }.ToJson(),
                OAuthType.WeixinOpen => new OAuthOptions
                {
                    AppId = "AppId",
                    AppKey = "AppKey",
                    RedirectUri = "RedirectUri",
                    Scope = "snsapi_login"
                }.ToJson(),
                _ => string.Empty
            };
 service.InitConfig(OAuthType.WeixinOpen);
var url = service.GetAuthorizeUrl(OAuthType.WeixinOpen, "state");
//获取三方登录用户信息
var user = await service.AuthorizeCallback(OAuthType.WeixinOpen, "code", "state");
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.2024.509-beta1413 68 5/9/2024
0.1.2024.509-beta1241 54 5/9/2024
0.1.2024.509-beta1214 58 5/9/2024
0.1.2024.509-beta1204 53 5/9/2024
0.1.2024.507-beta1408 63 5/7/2024
0.1.2024.507-beta1354 58 5/7/2024

EOH;OAuth2;依赖注入;支付宝登录;淘宝登录;飞书登录;