Compliant Telegram Mini App Authentication via Russian ID Providers in My Anti-Social Network Project
The project My Anti-Social Network shows how to implement legally compliant entry into Telegram Mini Apps for Russian audiences by moving identity verification away from Telegram itself. While Telegram’s initData HMAC-SHA-256 signature check remains reliable, Russian regulatory demands for user identification require additional steps when the service targets domestic users.
The core design separates identity (who the user is) from channel identity (where notifications are delivered). Users authenticate via VK ID, Yandex ID, or MAX; the resulting telegram_id is stored only as a delivery channel, never as the primary login credential.
VK ID Flow with PKCE
For VK ID the application follows OAuth 2.1 with PKCE. The browser generates a code_verifier, derives a code_challenge using S256, and stores the verifier on the server under a cryptographically random state value. The authorization URL opens in a new tab so users can complete login even when the Mini App runs inside Telegram WebView or on another device.
Yandex ID and MAX Integration
Yandex ID uses a similar OAuth 2.0 redirect that returns a short-lived code exchanged server-side for an identifier. MAX authentication relies on a one-time deep-link token that the MAX bot confirms inside the chat. In all cases the final exchange endpoint issues an HttpOnly session cookie; OAuth tokens never become accessible to client-side JavaScript.
Security Controls
- state values are generated with crypto.randomUUID() or equivalent 128-bit entropy and carry short TTLs.
- Polling for authentication results uses up to 120 attempts with 3-second intervals.
- Consent checkboxes for data processing are shown according to the platform (two checkboxes inside Telegram WebApp, one in PWA).
The same codebase powers Telegram bots, MAX and VK bots, PWA, browser extensions, and Home Assistant voice-assistant integrations with Alice, Sber, and Marusya. All state, code exchange, and polling logic remains invisible to the end user.
Related articles
Avoiding Biometric Data Processing Requirements in Russian Access Control Systems
Russian organizations operating access control systems with facial recognition at turnstiles face strict biometric data rules under Federal Law 152-FZ and 572-FZ. The article outlines three practical exits from biometric regime by changing technology or purpose rather than just documentation. Organizations can replace facial recognition with NFC cards, QR codes, or corporate credentials to eliminate written consent obligations and higher protection levels. Alternatively, they can stop using images for identity verification while retaining them as ordinary personal data. A third partial option involves disabling automated matching and relying on human verification, which removes 572-FZ restrictions but keeps 152-FZ biometric obligations. The guidance includes an inventory process, technology redesign steps, and proper destruction of accumulated biometric templates within 30 days. Roskomnadzor positions and court practice are referenced to support compliance decisions.
Google to Publicly Disclose Addresses and Phone Numbers of Commercial Android Developers Worldwide
Starting March 1, 2027, Google will publish the addresses and phone numbers of commercial Android app developers in Google Play. The change stems from the platform's transition to an online marketplace model in the European Economic Area and the United Kingdom. All existing developer accounts must declare trader or non-trader status by February 1, 2027, while new accounts require immediate declaration. Independent developers working from home have raised concerns about privacy risks, with some already renting offices to avoid listing residential addresses. Google mandates physical addresses in payment profiles and prohibits post office boxes. In contrast, Apple restricts disclosure to jurisdictions where legally required and permits post office boxes with supporting documentation. Google has not clarified why the rules apply globally or what protections it will offer for developers and their families.
Personal Data in SaaS: Defining Where Provider Responsibility Ends Under Russian Law
The article examines how Russian companies using SaaS platforms must determine the exact roles of operators and processors when handling personal data under Federal Law No. 152-FZ. It highlights that even when contracts assign responsibility to the client, actual duties are defined by who sets processing purposes, data composition, and operations. Key requirements include localizing databases for Russian citizens' data, managing cross-border transfers, and ensuring incident notification timelines are contractually defined. The piece also covers Supreme Court rulings on operator liability for processor actions and practical steps for auditing SaaS architectures before deployment. Companies are advised to map responsibilities for access controls, logging, backups, and data destruction to avoid regulatory penalties.
Putin Proposes Mandatory 'AI Choice Window' Across All Mobile Operating Systems in Russia
Russian President Vladimir Putin has called for the implementation of a selection mechanism for AI applications in every mobile operating system used within the country. The initiative, presented at the AI Journey conference, aims to give users the freedom to choose between preinstalled AI models or agents, including those developed by Russian companies. The proposed 'window of choice' would allow smartphone owners to replace default AI services integrated by device manufacturers. Putin also directed the government to develop additional legislative and economic measures to support domestic AI developers and ensure continuous feedback for product improvement. Technical specifications, inclusion criteria for AI services, and enforcement mechanisms for Android and iOS platforms remain undefined at this stage.