Skip to main content

Identity Validator - Overview

Try in Playground

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


Result Object

The AddPrimusIdentity() method configures the authentication pipeline. When validation succeeds, the following property is available on HttpContext.User:

PropertyTypeDescription
User.Identity.IsAuthenticatedboolWhether 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

Next Steps