Skip to content

v1.0.1

Latest

Choose a tag to compare

@cloud-yyy cloud-yyy released this 20 Apr 07:35
· 3 commits to main since this release
0337d10

🚀 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: IUserAccessor service for seamless access to current user information
  • Built-in Token Endpoint: Optional /auth/tma-token endpoint for JWT token generation
  • Comprehensive Integration Tests: Full test coverage for all authentication scenarios

📦 What's Included

  • TmaAuthentication.AspNetCore v1.0.1 - ASP.NET Core integration library
  • Authentication handlers for both direct and JWT-based authentication
  • User context management with IUserAccessor and UserAccessor
  • 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