Bee.OAuth2.Desktop
1.1.2
dotnet add package Bee.OAuth2.Desktop --version 1.1.2
NuGet\Install-Package Bee.OAuth2.Desktop -Version 1.1.2
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="Bee.OAuth2.Desktop" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bee.OAuth2.Desktop" Version="1.1.2" />
<PackageReference Include="Bee.OAuth2.Desktop" />
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 Bee.OAuth2.Desktop --version 1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bee.OAuth2.Desktop, 1.1.2"
#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.
#:package Bee.OAuth2.Desktop@1.1.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bee.OAuth2.Desktop&version=1.1.2
#tool nuget:?package=Bee.OAuth2.Desktop&version=1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Bee.OAuth2.Desktop
Bee.OAuth2.Desktop is a Windows Forms library that provides a user interface for OAuth2 authentication. It supports Google, Facebook, LINE, Azure, and Auth0 authentication with an easy-to-use UI component.
📦 Installation
Install via NuGet Package Manager:
dotnet add package Bee.OAuth2.Desktop
🌍 Supported OAuth2 Providers
- ✅ LINE
- ✅ Azure (Microsoft Entra ID)
- ✅ Auth0
🚀 Usage Example
Google OAuth2 Authentication
using Bee.OAuth2;
using Bee.OAuth2.Desktop;
private async void GoogleOAuth2()
{
var options = new GoogleOAuth2Options()
{
ClientId = "your-client-id",
ClientSecret = "your-client-secret",
RedirectUri = "http://localhost:5000/callback",
UsePKCE = true
};
var client = new OAuth2Client(options)
{
Caption = "Google Login",
Width = 600,
Height = 800
};
// Register the client globally
OAuth2Manager.RegisterClient("Google", client);
// Execute login
var result = await OAuth2Manager.Login("Google");
var userinfo = $"UserID : {result.UserInfo.UserId}\r\n" +
$"UserName : {result.UserInfo.UserName}\r\n" +
$"Email : {result.UserInfo.Email}\r\n" +
$"RawJson : \r\n{result.UserInfo.RawJson}";
}
📜 License
This project is licensed under the MIT License.
Bee.OAuth2.Desktop(中文)
Bee.OAuth2.Desktop 是一個 Windows Forms 函式庫,提供 OAuth2 驗證的使用者介面。支援 Google、Facebook、LINE、Azure 以及 Auth0 的身份驗證,並內建易於使用的 UI 元件。
📦 安裝方式
透過 NuGet 安裝:
dotnet add package Bee.OAuth2.Desktop
🌍 支援的 OAuth2 提供者
- ✅ LINE
- ✅ Azure(Microsoft Entra ID)
- ✅ Auth0
🚀 使用範例
Google OAuth2 驗證
using Bee.OAuth2;
using Bee.OAuth2.Desktop;
private async void GoogleOAuth2()
{
var options = new GoogleOAuth2Options()
{
ClientId = "your-client-id",
ClientSecret = "your-client-secret",
RedirectUri = "http://localhost:5000/callback",
UsePKCE = true
};
var client = new OAuth2Client(options)
{
Caption = "Google Login",
Width = 600,
Height = 800
};
// 註冊這個 client 到全域管理器
OAuth2Manager.RegisterClient("Google", client);
// 執行登入流程
var result = await OAuth2Manager.Login("Google");
var userinfo = $"UserID : {result.UserInfo.UserId}\r\n" +
$"UserName : {result.UserInfo.UserName}\r\n" +
$"Email : {result.UserInfo.Email}\r\n" +
$"RawJson : \r\n{result.UserInfo.RawJson}";
}
📜 授權
本專案採用 MIT License。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0-windows7.0
- Bee.OAuth2 (>= 1.1.2)
- Microsoft.Web.WebView2 (>= 1.0.3351.48)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.