Skip to content

EasyAuth Framework v2.2.0 - Comprehensive Swagger/OpenAPI and Developer Experience Release

Choose a tag to compare

@dbbuilder dbbuilder released this 12 Aug 18:58
· 26 commits to master since this release

🚀 Major Features

  • Complete Swagger/OpenAPI documentation system with enhanced developer UX
  • Dual-framework support (.NET 8.0 and .NET 9.0)
  • Enhanced CORS configuration with 40+ default origins for all major frameworks
  • New StandardApiController for universal frontend integration
  • Comprehensive API response system with unified error handling

📚 Swagger/OpenAPI Enhancements

  • Custom EasyAuthSchemaFilter and EasyAuthOperationFilter for rich documentation
  • Enhanced Swagger UI with custom CSS, JavaScript, and developer shortcuts
  • Automatic schema mapping with realistic examples for all models
  • Interactive documentation with copy-to-clipboard and helpful tooltips
  • Provider-specific documentation with OAuth flow explanations

🌐 CORS & Integration Improvements

  • Smart development detection for React, Vue, Angular, Next.js, and more
  • Auto-learning CORS capabilities for dynamic origin detection
  • Zero-configuration setup eliminating manual CORS complexity
  • Enhanced middleware pipeline with better error handling

🔧 Technical Improvements

  • Fixed all compilation errors and achieved 100% unit test success (176/176 tests)
  • Enhanced dependency injection configuration with better validation
  • Improved database service with robust error handling
  • Docker-aware integration testing with graceful fallbacks

🎯 Developer Experience Focus

  • Quick Start Guide integrated into Swagger UI
  • Keyboard shortcuts for enhanced development workflow (Ctrl+Shift+A, Ctrl+Shift+T)
  • Comprehensive code examples and realistic API responses
  • Enhanced controller extensions for consistent API patterns

🚀 Quick Start

// Program.cs - Zero configuration required\!
builder.Services.AddEasyAuth(builder.Configuration)
                .AddEasyAuthSwagger(); // 🆕 New in v2.2.0

var app = builder.Build();

app.UseEasyAuth(); // Automatically includes Swagger in development
app.MapControllers();

app.Run();

📖 What's New

Enhanced Swagger Documentation

  • Visit /swagger for comprehensive interactive API documentation
  • Custom UI with developer shortcuts and helpful guidance
  • Real-world examples for all OAuth providers (Google, Facebook, Apple, Azure B2C)

Universal CORS Support

  • Works out-of-the-box with React (Vite: 3000, CRA: 3000), Vue (8080), Angular (4200), Next.js (3000)
  • Smart detection for Docker, Vercel, Netlify, and cloud development environments
  • Auto-learning capabilities for dynamic origin registration

Dual Framework Targeting

  • Full support for .NET 8.0 and .NET 9.0
  • Optimized builds for both framework versions
  • Forward-compatible design for future .NET versions

🔄 Migration from v2.1.x

This is a non-breaking release. Existing v2.1.x applications will continue to work without changes.

Optional Enhancements

// Add enhanced Swagger documentation (optional)
builder.Services.AddEasyAuthSwagger();

// Enhanced CORS is automatically included
// No configuration needed for common development scenarios

🛠️ Installation

# Core framework
dotnet add package EasyAuth.Framework.Core --version 2.2.0

# Complete framework with extensions
dotnet add package EasyAuth.Framework --version 2.2.0

📦 NuGet Packages

  • EasyAuth.Framework.Core v2.2.0 - Core authentication framework
  • EasyAuth.Framework v2.2.0 - Complete framework with extensions

🏆 Quality Metrics

  • 176/176 unit tests passing (100% success rate)
  • Dual-framework compilation without warnings or errors
  • Enhanced CORS coverage for 40+ development frameworks
  • Comprehensive API documentation with interactive examples

This release prioritizes developer happiness with out-of-the-box documentation, enhanced CORS support, and comprehensive integration examples that work across all major development environments without manual configuration.

Full Changelog: v2.1.0...v2.2.0