OneIdentity.SafeguardDotNet.GuiLogin
8.2.3-dev-23053
See the version list below for details.
dotnet add package OneIdentity.SafeguardDotNet.GuiLogin --version 8.2.3-dev-23053
NuGet\Install-Package OneIdentity.SafeguardDotNet.GuiLogin -Version 8.2.3-dev-23053
<PackageReference Include="OneIdentity.SafeguardDotNet.GuiLogin" Version="8.2.3-dev-23053" />
<PackageVersion Include="OneIdentity.SafeguardDotNet.GuiLogin" Version="8.2.3-dev-23053" />
<PackageReference Include="OneIdentity.SafeguardDotNet.GuiLogin" />
paket add OneIdentity.SafeguardDotNet.GuiLogin --version 8.2.3-dev-23053
#r "nuget: OneIdentity.SafeguardDotNet.GuiLogin, 8.2.3-dev-23053"
#:package OneIdentity.SafeguardDotNet.GuiLogin@8.2.3-dev-23053
#addin nuget:?package=OneIdentity.SafeguardDotNet.GuiLogin&version=8.2.3-dev-23053&prerelease
#tool nuget:?package=OneIdentity.SafeguardDotNet.GuiLogin&version=8.2.3-dev-23053&prerelease
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.3.0-pre38787 | 32 | 5/29/2026 |
| 8.2.4 | 86 | 5/28/2026 |
| 8.2.4-pre38438 | 74 | 5/27/2026 |
| 8.2.3-pre37443 | 87 | 5/21/2026 |
| 8.2.3-pre36303 | 85 | 5/16/2026 |
| 8.2.3-dev-36240 | 95 | 5/16/2026 |
| 8.2.3-dev-33026 | 107 | 4/29/2026 |
| 8.2.3-dev-32683 | 93 | 4/27/2026 |
| 8.2.3-dev-32218 | 105 | 4/24/2026 |
| 8.2.3-dev-26748 | 98 | 3/26/2026 |
| 8.2.3-dev-25208 | 96 | 3/19/2026 |
| 8.2.3-dev-24706 | 109 | 3/17/2026 |
| 8.2.3-dev-24700 | 112 | 3/17/2026 |
| 8.2.3-dev-23900 | 104 | 3/11/2026 |
| 8.2.3-dev-23099 | 103 | 3/6/2026 |
| 8.2.3-dev-23053 | 99 | 3/6/2026 |
| 8.2.2 | 127 | 3/5/2026 |
| 8.2.1 | 111 | 3/3/2026 |
| 8.2.1-dev-22051 | 102 | 3/2/2026 |
| 8.2.1-dev-22043 | 98 | 3/2/2026 |
GuiLogin assembly for .NET interactive login.