OneIdentity.SafeguardDotNet.GuiLogin
8.2.2
See the version list below for details.
dotnet add package OneIdentity.SafeguardDotNet.GuiLogin --version 8.2.2
NuGet\Install-Package OneIdentity.SafeguardDotNet.GuiLogin -Version 8.2.2
<PackageReference Include="OneIdentity.SafeguardDotNet.GuiLogin" Version="8.2.2" />
<PackageVersion Include="OneIdentity.SafeguardDotNet.GuiLogin" Version="8.2.2" />
<PackageReference Include="OneIdentity.SafeguardDotNet.GuiLogin" />
paket add OneIdentity.SafeguardDotNet.GuiLogin --version 8.2.2
#r "nuget: OneIdentity.SafeguardDotNet.GuiLogin, 8.2.2"
#:package OneIdentity.SafeguardDotNet.GuiLogin@8.2.2
#addin nuget:?package=OneIdentity.SafeguardDotNet.GuiLogin&version=8.2.2
#tool nuget:?package=OneIdentity.SafeguardDotNet.GuiLogin&version=8.2.2
SafeguardDotNet.GuiLogin
WinForms GUI authentication for One Identity Safeguard Web API .NET SDK
Overview
SafeguardDotNet.GuiLogin provides a Windows Forms-based OAuth authentication dialog for the Safeguard API. This package enables .NET Framework applications to authenticate users through an embedded browser control with a native Windows interface.
When to Use This Package
Use SafeguardDotNet.GuiLogin when you need:
- Desktop Windows applications with GUI authentication
- .NET Framework 4.8.1+ applications
- Embedded browser experience within your application
- Native Windows Forms integration
Note: For cross-platform applications or .NET Core/.NET 5+, use SafeguardDotNet.BrowserLogin instead.
Key Features
- Native Windows GUI - WinForms dialog with embedded browser control
- OAuth Authentication - Supports all Safeguard authentication providers
- In-Application Experience - Login dialog stays within your application
- Federated Identity - Works with SAML, OAuth, LDAP, and other providers
- Seamless Integration - Compatible with main SafeguardDotNet SDK
Prerequisites
- .NET Framework 4.8.1 or higher
- Windows operating system
- SafeguardDotNet package (not included - must reference separately)
Installation
Install-Package OneIdentity.SafeguardDotNet.GuiLogin
Important: You must also reference the main SafeguardDotNet package:
Install-Package OneIdentity.SafeguardDotNet
Quick Start
using OneIdentity.SafeguardDotNet;
using OneIdentity.SafeguardDotNet.GuiLogin;
// Authenticate user with GUI dialog
var connection = LoginWindow.Connect("safeguard.company.com", ignoreSsl: false);
// Use the authenticated connection
string userData = connection.InvokeMethod(Service.Core, Method.Get, "Me");
Console.WriteLine($"Logged in as: {userData}");
How It Works
- Show Dialog - Application calls
Safeguard.ConnectGui()which displays WinForms dialog - Embedded Browser - Dialog contains WebView2 control showing Safeguard login page
- User Authenticates - User logs in through their chosen identity provider
- Capture Token - Dialog captures OAuth token from redirect
- Return Connection - Application receives authenticated
ISafeguardConnection
The dialog handles all OAuth flow details automatically.
Target Framework
- .NET Framework 4.8.1 (Windows only)
Package Structure
This package uses .nuspec packaging to support .NET Framework 4.8.1 dependencies and framework assemblies:
- System.Windows.Forms
- System.Web
- Newtonsoft.Json
- Serilog
Related Packages
- OneIdentity.SafeguardDotNet - Main SDK (must be referenced separately)
- OneIdentity.SafeguardDotNet.BrowserLogin - Cross-platform browser-based login for .NET Core/.NET 5+
- OneIdentity.SafeguardDotNet.PkceNoninteractiveLogin - Noninteractive PKCE login to simulate browser agent
Comparison: GuiLogin vs BrowserLogin
| Feature | GuiLogin | BrowserLogin |
|---|---|---|
| Platform | Windows only | Cross-platform |
| Framework | .NET Framework 4.8.1 | .NET Standard 2.0 |
| UI | Embedded WinForms dialog | System default browser |
| Use Case | Desktop Windows apps | Console, Web, Cross-platform apps |
Documentation
Support
This project is supported through:
License
Licensed under Apache 2.0
Copyright (c) 2026 One Identity LLC. All rights reserved.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net481 is compatible. |
-
.NETFramework 4.8.1
- Newtonsoft.Json (> 13.0.3)
- Serilog (> 3.0.1)
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 |
|---|---|---|
| 8.2.3-dev-23099 | 29 | 3/6/2026 |
| 8.2.3-dev-23053 | 32 | 3/6/2026 |
| 8.2.2 | 63 | 3/5/2026 |
| 8.2.1 | 75 | 3/3/2026 |
| 8.2.1-dev-22051 | 80 | 3/2/2026 |
| 8.2.1-dev-22043 | 77 | 3/2/2026 |
| 8.2.0 | 217 | 9/9/2025 |
| 8.2.0-dev-19047 | 85 | 2/11/2026 |
| 8.1.1 | 215 | 6/19/2025 |
| 8.1.0 | 317 | 3/5/2025 |
| 8.1.0-dev-25849 | 136 | 2/24/2025 |
| 8.0.0 | 223 | 9/19/2024 |
| 8.0.0-dev-45097 | 115 | 6/6/2025 |
| 8.0.0-dev-4409 | 147 | 9/19/2024 |
| 8.0.0-dev-38866 | 115 | 5/3/2025 |
| 8.0.0-dev-19043 | 87 | 2/11/2026 |
| 8.0.0-dev-19035 | 88 | 2/11/2026 |
| 8.0.0-dev-14930 | 138 | 12/2/2024 |
| 7.5.0-dev-28127 | 241 | 9/14/2023 |
| 7.4.0 | 290 | 9/14/2023 |
GuiLogin assembly for .NET interactive login.