OAuth 2.0 for Development

Simplified

AuthnzNet is a lightweight OAuth 2.0 server designed specifically for development and testing. Stop mocking authentication flows and start testing with real OAuth 2.0 endpoints locally.

Get Started View Documentation
Open Source
Easy Setup
Multi-Tenant

Everything You Need for OAuth Development

Built with developers in mind, AuthnzNet provides all the features you need to test OAuth 2.0 flows locally.

Simple OAuth 2.0

Standard OAuth 2.0 flows including Authorization Code, Client Credentials, and Resource Owner Password. Easy integration with any framework.

CLI Management

Powerful command-line interface to manage tenants, clients, and users. Scriptable and automation-friendly for CI/CD pipelines.

Email Verification

Built-in email confirmation workflow for testing user registration. SMTP integration with local testing options available.

Multi-Tenant

Support for multiple applications and tenants. Perfect for testing multi-tenant applications and B2B scenarios.

How It Works

Get started with AuthnzNet in just four simple steps

1

Register Your Tenant

Create a tenant for your application using the CLI. Each tenant represents an isolated OAuth environment.

authnznet tenant create --name MyApp --domain myapp.local
2

Create Client Credentials

Generate OAuth client credentials for your application with the appropriate grant types and redirect URIs.

authnznet client create --tenant MyApp --name WebApp \
  --redirect-uri http://localhost:3000/callback
3

Integrate OAuth Flow

Configure your application to use AuthnzNet endpoints. Use standard OAuth 2.0 libraries for seamless integration.

Authorization Endpoint: http://localhost:5000/oauth/authorize
Token Endpoint: http://localhost:5000/oauth/token
UserInfo Endpoint: http://localhost:5000/oauth/userinfo
4

Ready for Production

When you're ready to deploy, simply swap the AuthnzNet endpoints for your production OAuth provider. The integration code remains the same!

Quick Start Guide

Get up and running with AuthnzNet in minutes

Install the CLI

Install the AuthnzNet CLI tool globally using dotnet:

dotnet tool install -g AuthnzNet.Cli

Start the server:

authnznet server start

OAuth Integration

Example using ASP.NET Core authentication:

services.AddAuthentication(options =>
{
    options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
    options.DefaultChallengeScheme = "OAuth";
})
.AddCookie()
.AddOAuth("OAuth", options =>
{
    options.ClientId = "your-client-id";
    options.ClientSecret = "your-client-secret";
    options.AuthorizationEndpoint =
        "http://localhost:5000/oauth/authorize";
    options.TokenEndpoint =
        "http://localhost:5000/oauth/token";
    options.UserInformationEndpoint =
        "http://localhost:5000/oauth/userinfo";
});
View Full Documentation

Ready to Streamline Your OAuth Development?

Join developers who are simplifying their authentication testing workflow with AuthnzNet

View on GitHub Read Documentation

Development Only: AuthnzNet is designed for development and testing environments. For production workloads, use enterprise OAuth providers like Auth0, Azure AD, or Keycloak.