PocketAuth24 is an independent, open-source authorization server designed for self-hosted Bitrix24 installations. It allows local applications to function without relying on the official Bitrix24 cloud authorization service, enabling operation within isolated networks.
The service is built using Node.js 24, TypeScript, Fastify 5, Drizzle, and PostgreSQL 17, and is deployed via Docker Compose. It emulates the standard Bitrix24 authorization server, supporting token issuance, validation, and event delivery for local applications.
To deploy, administrators update the oauth_server option in the Bitrix24 PHP configuration. The system supports multiple portals simultaneously, with data for each portal stored separately. Access is restricted via a configurable allowlist.
The tool addresses issues with external network dependencies, such as unstable connections to the cloud or security requirements in regulated sectors. It also facilitates the creation of independent testing environments, preventing conflicts between production and development instances.
While the current version replaces the cloud service, future plans include a proxy mode. In this mode, the server would forward requests to the official Bitrix24 service while caching credentials and handling event delivery locally.





