Docs Menu

Docs HomeRealm

Application Services - Java SDK

On this page

  • Overview
  • The App Client
  • Authentication & User Management
  • Calling Atlas Functions
  • Accessing MongoDB

Realm provides SDKs that help you connect your client apps to the Atlas App Services backend. The SDK provides the functionality needed to authenticate users with any of the built-in authentication providers, call backend functions, and directly access a linked MongoDB data source.

When using the SDK to access the App Services backend, you start with a App object. This object provides all other functionality related to App Services. Initialize the App object with the App ID, which you can find in the App Services UI.


See also:

To learn how to initialize the App client, see Connect to an App Services backend.

One of the most challenging aspects of client development is implementing a robust and secure authentication system. With the Realm SDKs, however, you can use any of the App Services authentication providers with very minimal backend setup or client-side code required. With the authentication APIs, you can implement the following functionality:

  • Creation of new user accounts

  • User log-in and log-out

  • Multiple users logged on at the same time on the same device

  • Linking user accounts from different providers

  • Providing custom user data


See also:

To learn how to set up authentication with different providers, see Authenticate Users.

To learn how to manage multiple users, see Multi-User Applications.

To learn how to link user accounts, see Link User Identities.

To learn how to provide custom user data, see Custom User Data.

Atlas Functions enable you to define and execute server-side logic for your application. You can call these functions from your client applications via the Realm SDKs. These server-side functions can run under the context of the authenticated user, and thus honor the rules, roles, and permissions that you have assigned to your collections.

By using Functions, you provide a secure way for a variety of client applications to share complex functionality without having to reproduce that logic client-side.


See also:

To learn how to call Functions, see Call a Function.

The Realm SDKs include APIs for accessing a MongoDB Atlas instance directly. With these APIs, you can perform all of the standard CRUD operations from your client. For security, you configure server-side data access rules to dynamically determine read & write permissions for every object that is accessed.


See also:

To learn how to use the MongoDB APIs, see Query MongoDB.

←  Schema Versions & Migrations - Java SDKAtlas Device Sync - Java SDK →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.