OneIdentity.SafeguardDotNet.GuiLogin
9.0.1
dotnet add package OneIdentity.SafeguardDotNet.GuiLogin --version 9.0.1
NuGet\Install-Package OneIdentity.SafeguardDotNet.GuiLogin -Version 9.0.1
<PackageReference Include="OneIdentity.SafeguardDotNet.GuiLogin" Version="9.0.1" />
<PackageVersion Include="OneIdentity.SafeguardDotNet.GuiLogin" Version="9.0.1" />
<PackageReference Include="OneIdentity.SafeguardDotNet.GuiLogin" />
paket add OneIdentity.SafeguardDotNet.GuiLogin --version 9.0.1
#r "nuget: OneIdentity.SafeguardDotNet.GuiLogin, 9.0.1"
#:package OneIdentity.SafeguardDotNet.GuiLogin@9.0.1
#addin nuget:?package=OneIdentity.SafeguardDotNet.GuiLogin&version=9.0.1
#tool nuget:?package=OneIdentity.SafeguardDotNet.GuiLogin&version=9.0.1
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
LoginWindow.Connect()which displays a 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
- 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
- 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 |
|---|---|---|
| 9.0.1 | 94 | 7/1/2026 |
| 9.0.1-pre44965 | 93 | 7/1/2026 |
| 9.0.0-pre40762 | 102 | 6/8/2026 |
| 9.0.0-pre40181 | 93 | 6/4/2026 |
| 9.0.0-pre40008 | 99 | 6/4/2026 |
| 9.0.0-pre39983 | 98 | 6/3/2026 |
| 9.0.0-pre39666 | 97 | 6/3/2026 |
| 9.0.0-pre39649 | 99 | 6/3/2026 |
| 8.3.1 | 112 | 6/3/2026 |
| 8.3.1-pre39597 | 101 | 6/2/2026 |
| 8.3.0 | 109 | 6/2/2026 |
| 8.3.0-pre39380 | 99 | 6/2/2026 |
| 8.3.0-pre38787 | 105 | 5/29/2026 |
| 8.2.4 | 116 | 5/28/2026 |
| 8.2.4-pre38438 | 99 | 5/27/2026 |
| 8.2.3-pre37443 | 100 | 5/21/2026 |
| 8.2.3-pre36303 | 95 | 5/16/2026 |
| 8.2.3-dev-36240 | 105 | 5/16/2026 |
| 8.2.3-dev-33026 | 114 | 4/29/2026 |
| 8.2.3-dev-32683 | 99 | 4/27/2026 |
GuiLogin assembly for .NET interactive login.