Repository navigation
🚀 ASP.NET Core Integration Release
This release introduces comprehensive ASP.NET Core integration for TMA authentication, bringing enterprise-ready authentication capabilities to your Telegram Mini Apps.
✨ New Features
- Direct Init Data Authentication: Simple TAuth scheme for immediate validation of Telegram initialization data
- JWT-Based Authentication: Scalable JWT authentication with automatic token generation and validation
- User Context Management:
IUserAccessorservice for seamless access to current user information - Built-in Token Endpoint: Optional
/auth/tma-tokenendpoint for JWT token generation - Comprehensive Integration Tests: Full test coverage for all authentication scenarios
📦 What's Included
TmaAuthentication.AspNetCorev1.0.1 - ASP.NET Core integration library- Authentication handlers for both direct and JWT-based authentication
- User context management with
IUserAccessorandUserAccessor - Extensive documentation with usage examples
- Integration tests demonstrating real-world usage patterns
🔧 Quick Start
# Install the ASP.NET Core integration package
dotnet add package TmaAuthentication.AspNetCore// Configure JWT authentication
builder.Services.AddTmaJwtAuthentication(options =>
{
options.BotToken = "YOUR_BOT_TOKEN";
options.SecretKey = "YOUR_JWT_SECRET_KEY";
options.TokenExpiration = TimeSpan.FromHours(24);
options.EnableBuiltInEndpoint = true;
});📚 Documentation
Full documentation and usage examples are available in the README.md file.
🤖 Generated with Claude Code