Security

Authentication

This article provides an introduction to Ditto's methods for authentication, as well as step‑by‑step instructions on how to use the online playground authentication mode to initialize Ditto and start prototyping.

Ditto's security relies on digital identities for peer-to-peer authentication and access control permissions and privileges. Each instance of Ditto running in your app must prove its identity to other peers before it is allowed to sync.

The following table provides an overview of authentication in Ditto:

Method

Use Case

OnlinePlayground¹

You're ready to explore and test realtime sync capabilities without the commitment using either a demo app or your own development app.

OnlineWithAuthentication

You've integrated Ditto, integrated a third‑party identity service provider, and are now ready to go into production.

¹Do not use the online playground identity for production-level apps.

The online playground is intended for testing and experimentation purposes only. Deploying playground certificates to a live environment could lead to vulnerabilities and security risks.