OneIdentity.SafeguardDotNet.BrowserLogin
8.2.2
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
<PackageReference Include="OneIdentity.SafeguardDotNet.BrowserLogin" Version="8.2.2" />
<PackageVersion Include="OneIdentity.SafeguardDotNet.BrowserLogin" Version="8.2.2" />
<PackageReference Include="OneIdentity.SafeguardDotNet.BrowserLogin" />
paket add OneIdentity.SafeguardDotNet.BrowserLogin --version 8.2.2
#r "nuget: OneIdentity.SafeguardDotNet.BrowserLogin, 8.2.2"
#:package OneIdentity.SafeguardDotNet.BrowserLogin@8.2.2
#addin nuget:?package=OneIdentity.SafeguardDotNet.BrowserLogin&version=8.2.2
#tool nuget:?package=OneIdentity.SafeguardDotNet.BrowserLogin&version=8.2.2
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
- Initiate Login - Application calls
DefaultBrowserLogin.Connect() - Browser Opens - Default browser navigates to Safeguard login page
- User Authenticates - User logs in through their chosen provider
- Callback Received - OAuth callback redirects to localhost listener
- 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+
Related Packages
- 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 | Versions 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. |
-
.NETStandard 2.0
- OneIdentity.SafeguardDotNet (>= 8.2.2)
- Serilog (>= 4.3.0)
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 |
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.