Rosenbauer.Account.Authentication.Client 1.2.0

dotnet add package Rosenbauer.Account.Authentication.Client --version 1.2.0
                    
NuGet\Install-Package Rosenbauer.Account.Authentication.Client -Version 1.2.0
                    
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="Rosenbauer.Account.Authentication.Client" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rosenbauer.Account.Authentication.Client" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Rosenbauer.Account.Authentication.Client" />
                    
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 Rosenbauer.Account.Authentication.Client --version 1.2.0
                    
#r "nuget: Rosenbauer.Account.Authentication.Client, 1.2.0"
                    
#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 Rosenbauer.Account.Authentication.Client@1.2.0
                    
#: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=Rosenbauer.Account.Authentication.Client&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Rosenbauer.Account.Authentication.Client&version=1.2.0
                    
Install as a Cake Tool

Rosenbauer Account Authentication Client

Authentication library for the Rosenbauer Digital Solutions Account System.

Overview

This library provides authentication capabilities for applications connecting to the Rosenbauer Digital Solutions platform. It supports both email/password authentication and Rosenbauer SSO authentication via Microsoft Identity.

Features

  • Email Authentication: Authenticate users with email and password
  • Rosenbauer SSO: Authenticate using Rosenbauer Azure AD integration
  • Token Validation: Verify authentication tokens
  • Multi-Application Support: Pre-configured GUIDs for various Rosenbauer applications

Installation

Install via NuGet Package Manager:

dotnet add package Rosenbauer.Account.Authentication.Client

Or via Package Manager Console:

Install-Package Rosenbauer.Account.Authentication.Client

Usage

Initialize the Authentication Client

using AuthenticationLib;

var auth = new RDSAuthentication(
    ApplicationGUIDs.CONNECTED_FLEET_WEB, 
    "MyDevice"
);

Email Authentication

bool success = await auth.AuthenticateEmail("user@example.com", "password");
if (success)
{
    var loginData = auth.LoginData;
    Console.WriteLine($"Auth Token: {loginData.authToken}");
    Console.WriteLine($"User: {loginData.forename} {loginData.surname}");
}
else
{
    Console.WriteLine($"Error: {auth.LastError}");
}

Rosenbauer SSO Authentication

bool success = await auth.AuthenticateRosenbauer();
if (success)
{
    var loginData = auth.LoginData;
    Console.WriteLine($"Auth Token: {loginData.authToken}");
}
else
{
    Console.WriteLine($"Error: {auth.LastError}");
}

Token Validation

var verifyData = await auth.VerifyToken(authToken);
if (verifyData != null)
{
    Console.WriteLine($"Token is valid for account: {verifyData.accountGUID}");
}

Available Application GUIDs

The library includes pre-configured application GUIDs for:

  • SUDO
  • SITEC Configurator
  • Connected Fleet (Web, Android, iOS)
  • Alarm Monitor
  • Emerec Mobile (Android, iOS)
  • Account Management
  • IoT REST API
  • Mobile Administration
  • Health Check
  • Connected Fleet Maintenance

Requirements

  • .NET 10.0 or later
  • Microsoft.Identity.Client 4.83.3+
  • Newtonsoft.Json 13.0.1+

API Endpoints

This library connects to:

  • Base URL: https://connected.rosenbauer.com
  • Email Login: /api/account/v1/login/email
  • Rosenbauer SSO: /api/account/v1/login/rosenbauer
  • Token Validation: /api/account/v1/login/validate

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues and questions, please contact Rosenbauer International AG Digital Solutions.

Author

Christian Schöppl


Copyright © 2024 Rosenbauer International AG Digital Solutions

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
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
1.2.0 131 4/9/2026
1.1.0 544 11/15/2022
1.0.3 766 9/16/2022
1.0.2 549 9/9/2022
1.0.1 536 5/7/2021