IBeam.Identity.Api 2.0.32

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

IBeam.Identity.Api

Reusable identity API module for OTP, password, OAuth, token, and session endpoints.

Narrative Introduction

This package is for API hosts that want to expose identity endpoints quickly with sensible defaults. It composes identity services, Azure-backed repository providers, communications providers, and JWT authentication wiring into a single startup flow while still allowing host-level overrides.

Features and Components

  • DI entry points:
    • AddIBeamIdentityApi(IConfiguration)
    • AddIBeamIdentityApiControllers()
  • pre-wired dependencies:
    • identity services and auth flow services
    • Azure Table identity repository provider
    • Azure Communications email and SMS providers
    • JWT authentication and authorization configuration
  • controller endpoints in AuthController covering OTP/password/OAuth/token/session flows
    • RolesController for tenant role CRUD + user role grant/revoke
    • role authorization attributes:
      • [AllowRoles("owner","admin")] (role-name claims)
      • [AllowRoleIds("3f7a4b4f-8fc5-49bb-b6fe-1f4a9b43a3e9")] (role-id claims)

Dependencies

  • Internal packages:
    • IBeam.Communications
    • IBeam.Communications.Email.AzureCommunications
    • IBeam.Communications.Sms.AzureCommunications
    • IBeam.Identity.Repositories.AzureTable
    • IBeam.Identity.Services
  • External packages:
    • Microsoft.AspNetCore.Authentication.JwtBearer
    • System.IdentityModel.Tokens.Jwt
    • Microsoft.AspNetCore.App framework reference

Quick Start

builder.Services.AddIBeamIdentityApi(builder.Configuration);
builder.Services.AddIBeamIdentityApiControllers();

Role Management Endpoints

  • GET /api/tenants/{tenantId}/roles
  • POST /api/tenants/{tenantId}/roles
  • PUT /api/tenants/{tenantId}/roles/{roleId}
  • DELETE /api/tenants/{tenantId}/roles/{roleId}
  • POST /api/tenants/{tenantId}/roles/grant
  • POST /api/tenants/{tenantId}/roles/revoke
  • GET /api/tenants/{tenantId}/users/{userId}/roles

Role management endpoints require an authenticated tenant token (tid) with one of these role claims: owner, administrator, or admin.

Attribute Examples

[AllowRoles("owner", "admin")]
public sealed class PatientController : ControllerBase
{
    [HttpPost("save")]
    [AllowRoleIds("3f7a4b4f-8fc5-49bb-b6fe-1f4a9b43a3e9")]
    public IActionResult Save() => Ok();
}

AllowRoles uses built-in ASP.NET Core role authorization against the role claim type.
AllowRoleIds uses a dynamic policy that checks rid (or role_id) claims.

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
2.0.32 124 3/25/2026
2.0.30 83 3/25/2026
2.0.29 82 3/25/2026
2.0.28 75 3/25/2026
2.0.26 78 3/25/2026
2.0.22 86 3/25/2026