Separating Identity and Delivery Channels for Compliant Telegram Mini App Authentication
When configuring authorization in Telegram Mini Apps, the initial flow appears straightforward: Telegram supplies initData, the server validates the HMAC-SHA-256 signature derived from the bot token, and everything works out of the box. However, services aimed at Russian users must also satisfy stricter identification requirements, prompting the team to keep Telegram primarily as a delivery channel rather than the sole login method.
The architecture explicitly separates two concepts: “who the user is” (identity) and “where to send notifications” (channel identity). Users authenticate via VK ID, Yandex ID or MAX, after which their telegram_id is linked to the account solely for message delivery. The database schema reflects this split with separate tables storing max_user_id, vk_user_id, yandex_id for identity and max_chat_id, vk_chat_id, telegram_id for delivery channels.
Three buttons labeled MAX, VK and Yandex appear inside the mini-app; no “Login with Telegram” option exists. For VK ID the team uses OAuth 2.1 with PKCE: the browser generates a code_verifier, computes the S256 code_challenge, and includes both state and challenge in the authorization request. The server stores the verifier keyed by state for later validation.
Authorization opens in a new browser tab, allowing users to complete the flow in their main browser even when the mini-app runs inside Telegram WebView or on another device. After success the tab closes itself and the main interface learns the outcome via polling. The same pattern was applied to smart-home authorization through Home Assistant.
Yandex authentication follows a similar OAuth 2.0 flow, but the authorization URL is generated on the backend. The server exchanges the received code for an access token, retrieves the user identifier, and returns the result via a /api/auth/result-by-state endpoint that clients poll (for example, 120 attempts at three-second intervals). Only a short-lived application-level code travels to the browser; the OAuth token itself never reaches client JavaScript and is instead stored in an HttpOnly cookie, reducing XSS exposure.
State values are generated with crypto.randomUUID() or crypto.getRandomValues() providing at least 128 bits of entropy and are stored server-side with a short TTL. The callback avoids placing any auth_token in the URL; a one-time code is exchanged for a session via POST. A from_extension flag is passed only for UI adjustments and carries no security meaning on the server.
MAX integration uses a deep link containing a single-use token; after binding, the bot posts a confirmation message in the chat. Consent handling differs by platform: Telegram WebApp versions display two checkboxes (general consent and separate consent for data transfer to Telegram) to meet legal requirements, while the PWA version requires only one checkbox.
The resulting system powers the project “My Anti-Social Network,” an ad-free news aggregator that includes bots in Telegram, MAX and VK, a PWA, browser extensions, mobile apps and integrations with smart-home and voice assistants. The developer notes that while the technical pattern supports compliance, final legal validity depends on specific regulatory interpretation.
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.