Current SDK posture

Standards-first integration

NexinID uses OpenID Connect, OAuth 2.0, discovery metadata, and documented REST API route families. Public SDK pages should point developers to stable protocol clients until package-specific guides are published.

Recommended

OIDC clients

Use mature OIDC client libraries for Authorization Code with PKCE, discovery, token validation, and logout handling.

Supported

REST clients

Use generated or hand-authored REST clients against documented route families and tenant-aware authorization headers.

.NET SDK

Nexin.SharedAuth

For .NET, the SDK is split into focused packages with runnable reference samples for the top-3 integration paths (below). Public-registry distribution is being finalized.

Nexin.SharedAuth

The .NET SDK and consumer profiles

For .NET apps, Nexin.SharedAuth wires NexinID authentication, tenant context, permission evaluation, and service-to-service clients. Choose the profile that matches how your app integrates — take only the packages that concern you.

Interactive Web App

OIDC sign-in (Authorization Code + PKCE)

User-facing web apps: cookie + OIDC wiring, tenant-context accessor, and permission policies. Add the core, context, and permissions packages.

Protected API

JWT bearer validation

APIs that accept NexinID access tokens: JWT validation against the platform JWKS plus scope/permission checks. Core + permissions only — no EF Core dependency.

Service-to-Service

Client-credentials machine clients

Backend workers calling NexinID or other services: client-credentials token acquisition, bearer-token delegation, and API-version headers.

Marketplace vendor

Catalog, installations, entitlements

Apps that publish or consume marketplace products: typed marketplace/licensing client over the service-client lane.

Minimum configuration (appsettings.json)
{
  "NexAuth": {
    "Mode": "NexIdentityServer",
    "Web": {
      "Authority": "https://identity.nexinid.com",
      "ClientId": "your-app-web",
      "ClientSecret": "__set-in-secret-store__",
      "CallbackPath": "/signin-oidc",
      "SignedOutCallbackPath": "/signout-callback-oidc"
    }
  }
}
Reference samples

Runnable samples for the top integration paths

The SDK ships three runnable reference samples, each consuming only the focused packages it needs.

Interactive web

OIDC + PKCE sign-in

A web app that signs users in and reads the tenant context from the principal. Uses the core and context packages.

Machine client

Client-credentials call

A backend worker that acquires a client-credentials token and calls a NexinID API. Uses the service-client package.

Device-bound

Activation + offline lease

A device activating against an entitlement seat and receiving a server-issued, device-bound offline lease. Uses the service-client and contracts packages.

Integration references

Where SDK content connects

Use these routes for current implementation detail until package-specific examples are published.