Identity Validator - Overview
Multi-issuer JWT/OIDC validation for your APIs. Works fully in-processno Primus-hosted runtime. Supports Azure AD/Microsoft Entra, any OIDC authority (Auth0, Google, Cognito, etc.), and Local/JWKS JWT issuers.
Why Use Identity Validator?
Integrating authentication across multiple identity providers is complex. Identity Validator provides a unified API for validating tokens from any OIDC-compliant provider.
// One line to add multi-issuer authentication
builder.Services.AddPrimusIdentity(opts =>
builder.Configuration.GetSection("PrimusIdentity").Bind(opts));
Supported Providers
Azure AD / Entra ID
Enterprise-grade SSO with Microsoft identity platform.
Auth0
Flexible authentication for B2C and B2B applications.
Okta
Enterprise workforce identity management.
AWS Cognito
Scalable authentication for AWS-hosted apps.
Local JWT
HMAC-signed tokens for development and testing.
Multi-Issuer
Combine multiple providers in a single app.
Result Object
The AddPrimusIdentity() method configures the authentication pipeline. When validation succeeds, the following property is available on HttpContext.User:
| Property | Type | Description |
|---|---|---|
User.Identity.IsAuthenticated | bool | Whether the token is valid |
Quick Install
# .NET
dotnet add package PrimusSaaS.Identity.Validator --version 2.0.0
# Node.js
npm install @primus-saas/identity-validator