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
<PackageReference Include="Rosenbauer.Account.Authentication.Client" Version="1.2.0" />
<PackageVersion Include="Rosenbauer.Account.Authentication.Client" Version="1.2.0" />
<PackageReference Include="Rosenbauer.Account.Authentication.Client" />
paket add Rosenbauer.Account.Authentication.Client --version 1.2.0
#r "nuget: Rosenbauer.Account.Authentication.Client, 1.2.0"
#:package Rosenbauer.Account.Authentication.Client@1.2.0
#addin nuget:?package=Rosenbauer.Account.Authentication.Client&version=1.2.0
#tool nuget:?package=Rosenbauer.Account.Authentication.Client&version=1.2.0
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 | Versions 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. |
-
net10.0
- Microsoft.Identity.Client (>= 4.83.3)
- Newtonsoft.Json (>= 13.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.