Portal vs Self Hosted #
The Cosync JWT system comprises two components: the Portal and the Server. Initially, when starting with Cosync, both these components are typically bundled together as a single service. This bundled service is available in our Free and Developer tiers under the name SANDBOX. However, as your needs expand and your usage grows, there will come a point where it becomes advantageous to host the server independently, freeing you from the limitations of the SANDBOX.
With Cosync, you have the seamless capability to transition your Cosync Apps from the Cosync Server SANDBOX solution to a self-hosted one, ensuring greater flexibility and control over your setup.
Cosync Portal #
The administration web portal serves as a platform to collect Realm credentials and JWT configuration metadata, which are subsequently utilized to initialize the customer Realm Application. Additionally, the portal generates necessary keys for the application (e.g., iOS) to interact with the JWT APIs.
Inside the Portal, you can create Cosync Apps that seamlessly integrate with your Realm Apps. Moreover, you have complete access to configure authentication flow settings, email templates, and your entire users’ database.
It’s important to note that configuring the Realm application is a one-time process, and the Realm credentials are not retained or stored by the Cosync Web Portal Servers.
Cosync JWT Server #
The Cosync JWT Server offers authentication, user management, and onboarding flows designed for Realm-based applications. Realm clients gain access to the server APIs through an application provided in the Cosync Portal.
The system configuration can be divided into the following components:
- Configuring MongoDB to run JWT enabled applications.
- Configuring the JWT server. This includes server provisioning and application installation.
- Registering the JWT server host in the Cosync Web Portal.
- Configuring a Realm application that will use the Cosync JWT API’s.
- Client Configuration
As you transition from a Cosync SANDBOX JWT server to your own self-hosted server, you’ll retain access to your apps by navigating to the Hosts option in the top navigation menu and selecting your self-hosted host server. This gives you the flexibility to migrate any apps from Cosync hosted to self-hosted as your application expands and requires more control over the hosting environment.