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.
<PackageVersion Include="EOH.OAuth.Extensions" Version="0.1.2024.509-beta1413" />
                    
Directory.Packages.props
<PackageReference Include="EOH.OAuth.Extensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#addin nuget:?package=EOH.OAuth.Extensions&version=0.1.2024.509-beta1413&prerelease
                    
Install EOH.OAuth.Extensions as a Cake Addin
#tool nuget:?package=EOH.OAuth.Extensions&version=0.1.2024.509-beta1413&prerelease
                    
Install EOH.OAuth.Extensions as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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 108 5/9/2024
0.1.2024.509-beta1241 66 5/9/2024
0.1.2024.509-beta1214 71 5/9/2024
0.1.2024.509-beta1204 67 5/9/2024
0.1.2024.507-beta1408 83 5/7/2024
0.1.2024.507-beta1354 69 5/7/2024

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