EasyAuth.Framework
2.3.0
See the version list below for details.
dotnet add package EasyAuth.Framework --version 2.3.0
NuGet\Install-Package EasyAuth.Framework -Version 2.3.0
<PackageReference Include="EasyAuth.Framework" Version="2.3.0" />
<PackageVersion Include="EasyAuth.Framework" Version="2.3.0" />
<PackageReference Include="EasyAuth.Framework" />
paket add EasyAuth.Framework --version 2.3.0
#r "nuget: EasyAuth.Framework, 2.3.0"
#:package EasyAuth.Framework@2.3.0
#addin nuget:?package=EasyAuth.Framework&version=2.3.0
#tool nuget:?package=EasyAuth.Framework&version=2.3.0
EasyAuth Framework
๐ Enterprise-grade authentication framework with multi-provider support and zero-configuration setup
๐ Overview
EasyAuth is a production-ready, self-contained .NET 8+ authentication framework that provides seamless integration with multiple identity providers. Built following enterprise security best practices, it offers automatic database setup, comprehensive testing, and plug-and-play functionality for modern web applications.
โจ Key Features
- ๐ Multi-Provider Support: Azure AD B2C, Google OAuth 2.0, Apple Sign-In, Meta/Facebook Login
- ๐ฆ Self-Contained: Single NuGet package with automatic database setup and migrations
- ๐ Secure by Default: BFF pattern, HTTP-only cookies, CSRF protection, rate limiting
- ๐ฏ Framework Agnostic: Works with ASP.NET Core, Vue.js, React, or vanilla JavaScript
- ๐ข Enterprise Ready: SQL Server backend, structured logging, health checks, telemetry
- โก Zero Configuration: Automatic setup with minimal configuration required
- ๐งช Test-Driven: 90%+ code coverage with comprehensive test suite
- ๐ Production Hardened: Security scanning, performance testing, monitoring
๐ Quick Start
Backend Integration (ASP.NET Core)
dotnet add package EasyAuth.Framework
// Program.cs
builder.Services.AddEasyAuth(builder.Configuration, builder.Environment);
var app = builder.Build();
app.UseEasyAuth(builder.Configuration);
app.Run();
Configuration (appsettings.json)
{
"EasyAuth": {
"ConnectionString": "Server=.;Database=MyApp;Trusted_Connection=true;",
"Providers": {
"Google": {
"Enabled": true,
"ClientId": "your-google-client-id"
}
},
"Framework": {
"AutoDatabaseSetup": true,
"EnableHealthChecks": true
}
}
}
Frontend Integration
npm install @easyauth/client
import { EasyAuthClient, useEasyAuth } from '@easyauth/client';
const authClient = new EasyAuthClient({
baseUrl: 'https://your-api.com'
});
// Vue.js Composition API
const { user, login, logout, isAuthenticated } = useEasyAuth(authClient);
// React Hook
const { user, login, logout, isAuthenticated } = useEasyAuthReact(authClient);
๐ Supported Identity Providers
Provider | Status | Features |
---|---|---|
Google OAuth 2.0 | โ Production Ready | Profile, Email, OAuth 2.0 |
Azure AD B2C | โ Production Ready | Enterprise SSO, Custom Policies |
Apple Sign-In | โ Production Ready | Privacy-focused, Mobile-first |
Meta/Facebook | โ Production Ready | Social Login, Profile Data |
Custom OAuth | ๐ Coming Soon | Extensible Provider System |
๐๏ธ Architecture
graph TB
A[Frontend App] -->|HTTP/HTTPS| B[ASP.NET Core API]
B -->|EasyAuth.Framework| C[Authentication Service]
C -->|OAuth 2.0/OIDC| D[Identity Providers]
C -->|Session Management| E[SQL Server Database]
C -->|Secrets Management| F[Azure Key Vault]
D --> D1[Google]
D --> D2[Azure B2C]
D --> D3[Apple]
D --> D4[Facebook]
๐ Development Status
Feature | Status | Coverage |
---|---|---|
Core Authentication | โ Complete | 95% |
Google Provider | โ Complete | 92% |
Database Layer | โ Complete | 98% |
Security Hardening | ๐ In Progress | 85% |
Apple Provider | ๐ In Progress | 75% |
Facebook Provider | ๐ In Progress | 70% |
Azure B2C Provider | ๐ In Progress | 60% |
Performance Testing | โณ Planned | 0% |
Documentation | ๐ In Progress | 40% |
๐งช Testing & Quality
- Test Coverage: 90%+ across all components
- Security Scanning: OWASP compliance, vulnerability scanning
- Performance Testing: Load testing with NBomber
- Code Quality: SonarCloud analysis, StyleCop enforcement
- CI/CD: Automated testing, security checks, NuGet publishing
๐ Documentation
- ๐ Getting Started Guide
- โ๏ธ Configuration Reference
- ๐ Provider Setup Guide
- ๐ API Reference
- ๐ข Enterprise Deployment
- ๐ง Troubleshooting
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Follow TDD: Write tests first, then implementation
- Ensure 90%+ code coverage
- Submit a pull request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
- ๐ Documentation
- ๐ฌ GitHub Discussions
- ๐ Issue Tracker
- ๐ง Email: support@easyauth.dev
โญ If you find EasyAuth useful, please consider giving it a star on GitHub!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- AspNetCore.HealthChecks.SqlServer (>= 8.0.2)
- EasyAuth.Framework.Core (>= 2.3.0)
- Swashbuckle.AspNetCore (>= 7.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.4.11 | 120 | 8/14/2025 |
2.4.10 | 121 | 8/14/2025 |
2.4.9 | 118 | 8/14/2025 |
2.4.8 | 122 | 8/14/2025 |
2.4.7 | 121 | 8/13/2025 |
2.4.6 | 118 | 8/13/2025 |
2.4.5 | 161 | 8/13/2025 |
2.4.3 | 148 | 8/13/2025 |
2.4.2 | 144 | 8/13/2025 |
2.4.0 | 150 | 8/13/2025 |
2.3.1 | 120 | 8/12/2025 |
2.3.0 | 120 | 8/12/2025 |
2.2.0 | 121 | 8/12/2025 |
2.1.0 | 142 | 8/12/2025 |
2.0.0 | 140 | 8/12/2025 |
1.0.0-alpha.1 | 115 | 8/12/2025 |
v2.3.0 Zero-Configuration Release: Revolutionary auto-CORS detection for all frontend frameworks, intelligent development server discovery, and true zero-config development experience. Eliminates manual CORS setup while maintaining production security. Features enhanced middleware pipeline and smart environment detection.