OneIdentity.SafeguardDotNet.GuiLogin 8.2.2

There is a newer prerelease version of this package available.
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
                    
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="OneIdentity.SafeguardDotNet.GuiLogin" Version="8.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OneIdentity.SafeguardDotNet.GuiLogin" Version="8.2.2" />
                    
Directory.Packages.props
<PackageReference Include="OneIdentity.SafeguardDotNet.GuiLogin" />
                    
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 OneIdentity.SafeguardDotNet.GuiLogin --version 8.2.2
                    
#r "nuget: OneIdentity.SafeguardDotNet.GuiLogin, 8.2.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 OneIdentity.SafeguardDotNet.GuiLogin@8.2.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=OneIdentity.SafeguardDotNet.GuiLogin&version=8.2.2
                    
Install as a Cake Addin
#tool nuget:?package=OneIdentity.SafeguardDotNet.GuiLogin&version=8.2.2
                    
Install as a Cake Tool

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

  1. Show Dialog - Application calls Safeguard.ConnectGui() which displays WinForms dialog
  2. Embedded Browser - Dialog contains WebView2 control showing Safeguard login page
  3. User Authenticates - User logs in through their chosen identity provider
  4. Capture Token - Dialog captures OAuth token from redirect
  5. 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
  • 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 Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
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
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
Loading failed

GuiLogin assembly for .NET interactive login.