OneIdentity.SafeguardDotNet.BrowserLogin 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.BrowserLogin --version 8.2.2
                    
NuGet\Install-Package OneIdentity.SafeguardDotNet.BrowserLogin -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.BrowserLogin" 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.BrowserLogin" Version="8.2.2" />
                    
Directory.Packages.props
<PackageReference Include="OneIdentity.SafeguardDotNet.BrowserLogin" />
                    
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.BrowserLogin --version 8.2.2
                    
#r "nuget: OneIdentity.SafeguardDotNet.BrowserLogin, 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.BrowserLogin@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.BrowserLogin&version=8.2.2
                    
Install as a Cake Addin
#tool nuget:?package=OneIdentity.SafeguardDotNet.BrowserLogin&version=8.2.2
                    
Install as a Cake Tool

SafeguardDotNet.BrowserLogin

Browser-based authentication for One Identity Safeguard Web API .NET SDK

Overview

SafeguardDotNet.BrowserLogin provides browser-based OAuth authentication for the Safeguard API. This package enables your .NET applications to authenticate users through their default system browser, supporting modern authentication flows including federated identity providers.

When to Use This Package

Use SafeguardDotNet.BrowserLogin when you need:

  • Interactive user authentication via web browser
  • Support for federated authentication providers (SAML, OAuth, etc.)
  • Modern authentication flows with PKCE (Proof Key for Code Exchange)

Key Features

  • Browser-Based Authentication - Uses the system's default browser for OAuth login
  • Cross-Platform Support - Works on Windows, Linux, and macOS with .NET Core/.NET 5+
  • Federated Identity - Supports all Safeguard authentication providers including SAML, OAuth, and LDAP
  • Secure Token Handling - Implements OAuth best practices with PKCE
  • Seamless Integration - Works with the main SafeguardDotNet SDK

Prerequisites

  • SafeguardDotNet package (included as dependency)
  • .NET Standard 2.0+ compatible runtime

Installation

dotnet add package OneIdentity.SafeguardDotNet.BrowserLogin

This package automatically includes the main OneIdentity.SafeguardDotNet package as a dependency.

Quick Start

using OneIdentity.SafeguardDotNet;
using OneIdentity.SafeguardDotNet.BrowserLogin;

// Authenticate user via browser
var connection = Safeguard.ConnectBrowser("safeguard.company.com");

// Use the authenticated connection
string userData = connection.InvokeMethod(Service.Core, Method.Get, "Me");
Console.WriteLine($"Logged in as: {userData}");

With Specific Authentication Provider

var connection = DefaultBrowserLogin.Connect("myspp.petrsnd.test", ignoreSsl: false);

Advanced Options

// Configure an alternate listing port (default: 8400 [same as Microsoft])
var connection = DefaultBrowserLogin.Connect("safeguard.company.com", port: 8080);

How It Works

  1. Initiate Login - Application calls DefaultBrowserLogin.Connect()
  2. Browser Opens - Default browser navigates to Safeguard login page
  3. User Authenticates - User logs in through their chosen provider
  4. Callback Received - OAuth callback redirects to localhost listener
  5. Connection Established - Application receives authenticated connection

The entire process is handled automatically by the library.

Target Framework

  • netstandard2.0 - Compatible with .NET Framework 4.6.1+, .NET Core 2.0+, .NET 5+, and .NET 6+
  • OneIdentity.SafeguardDotNet - Main SDK (automatically included)
  • OneIdentity.SafeguardDotNet.GuiLogin - WebView2-based login for .NET Framework applications
  • OneIdentity.SafeguardDotNet.PkceNoninteractiveLogin - Noninteractive PKCE login to simulate browser agent

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 net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
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-25208 32 3/19/2026
8.2.3-dev-24706 74 3/17/2026
8.2.3-dev-24700 82 3/17/2026
8.2.3-dev-23900 78 3/11/2026
8.2.3-dev-23099 77 3/6/2026
8.2.3-dev-23053 75 3/6/2026
8.2.2 83 3/5/2026
8.2.1 85 3/3/2026
8.2.1-dev-22051 76 3/2/2026
8.2.1-dev-22043 79 3/2/2026
8.2.0 244 9/9/2025
8.2.0-dev-19047 86 2/11/2026
8.1.1 246 6/19/2025
8.1.0 338 3/5/2025
8.1.0-dev-25849 155 2/24/2025
8.0.0-dev-45097 117 6/6/2025
8.0.0-dev-38866 108 5/3/2025
8.0.0-dev-19043 87 2/11/2026
8.0.0-dev-19035 87 2/11/2026
8.0.0-dev-14930 131 12/2/2024
Loading failed

Browser Login for One Identity Safeguard Web API .NET SDK

     Allows custom application to use the Safeguard Web API by authenticating to
     Safeguard using the default system browser.