@@ -132,7 +132,7 @@ Create a Web App
132
132
MongoDB offers :github:`examples of authenticated embedded dashboards </mongodb-js/charts-embed-sdk/tree/master/examples/dashboard/>`
133
133
in the GitHub Repository. These examples show you how to use
134
134
the Embedding SDK to authenticate an embedded dashboard using
135
- :stitch:`MongoDB Realm </>` , Google, or |jwt| authentication
135
+ {+atlas-app-services-link+} , Google, or |jwt| authentication
136
136
providers.
137
137
138
138
Add Embedding Code to Your App
@@ -186,13 +186,12 @@ To learn how to install the Embedding SDK into your app, see
186
186
Add the following code to your web app to execute where you
187
187
want your chart to render. The following example
188
188
:ref:`authenticates <configure-auth-providers>` with
189
- :stitch:`MongoDB Realm </>` .
189
+ {+atlas-app-services-link+} .
190
190
191
191
.. note::
192
192
193
- Replace the existing Realm App ID with your Realm App
194
- ID, which you can find on the left side of your Realm
195
- app UI. Replace the existing Charts Base URL and chart
193
+ Replace the existing App ID with your App
194
+ ID, which you can find in the {+atlas-app-services+} UI. Replace the existing Charts Base URL and chart
196
195
ID with the values for the chart that you want to
197
196
display. Your Charts Base URL and chart ID are visible
198
197
in the embedding options modal window.
@@ -202,16 +201,16 @@ To learn how to install the Embedding SDK into your app, see
202
201
203
202
import ChartsEmbedSDK from "@mongodb-js/charts-embed-dom";
204
203
205
- // Needed only if you are using the Realm authentication provider
204
+ // Needed only if you are using the Atlas App Services authentication provider
206
205
const client = Stitch.initializeAppClient(
207
- 'realm- authentication-sample-eibkj', // ~REPLACE~ with your Realm App ID
206
+ 'authentication-sample-eibkj', // ~REPLACE~ with your App ID
208
207
});
209
208
210
209
const sdk = new ChartsEmbedSDK({
211
210
baseUrl: "https://charts.mongodb.com/charts-embedding-examples-wgffp", // ~REPLACE~ with the Base URL from your Embed Chart dialog.
212
211
getUserToken: () => getRealmUserToken(client),
213
212
// getUserToken is a callback to provide the auth token to the SDK.
214
- // Use the getRealmUserToken helper when using the Realm auth provider.
213
+ // Use the getRealmUserToken helper when using the Atlas App Services auth provider.
215
214
// If using Custom JWT or Google providers, provide your own code to retrieve the JWT
216
215
});
217
216
@@ -267,13 +266,12 @@ To learn how to install the Embedding SDK into your app, see
267
266
Add the following code to your web app to run it where you
268
267
want your dashboard to render. The following example
269
268
:ref:`authenticates <configure-auth-providers>` with
270
- :stitch:`MongoDB Realm </>` .
269
+ {+atlas-app-services-link+} .
271
270
272
271
.. note::
273
272
274
- Replace the existing Realm App ID with your Realm
275
- App ID. You can find the Realm ID on the left side
276
- of your Realm app UI. Replace the existing :guilabel:`Dashboards
273
+ Replace the existing App ID with your
274
+ App ID. You can find your App ID in the {+atlas-app-services+} UI. Replace the existing :guilabel:`Dashboards
277
275
Base URL` and dashboard ID with the values for the
278
276
dashboard that you want to display. Your :guilabel:`Dashboards Base URL`
279
277
and dashboard ID are visible in the embedding options
@@ -284,16 +282,16 @@ To learn how to install the Embedding SDK into your app, see
284
282
285
283
import ChartsEmbedSDK from "@mongodb-js/charts-embed-dom";
286
284
287
- // Needed only if you are using the Realm authentication provider
285
+ // Needed only if you are using the Atlas App Services authentication provider
288
286
const client = Stitch.initializeAppClient(
289
- 'realm- authentication-sample-eibkj', // ~REPLACE~ with your Realm App ID
287
+ 'authentication-sample-eibkj', // ~REPLACE~ with your App ID
290
288
});
291
289
292
290
const sdk = new ChartsEmbedSDK({
293
291
baseUrl: "https://charts.mongodb.com/charts-embedding-examples-wgffp", // ~REPLACE~ with the Base URL from your Embed Dashboard dialog.
294
292
getUserToken: () => getRealmUserToken(client),
295
293
// getUserToken is a callback to provide the auth token to the SDK.
296
- // Use the getRealmUserToken helper when using the Realm auth provider.
294
+ // Use the getRealmUserToken helper when using the Atlas App Services auth provider.
297
295
// If using Custom JWT or Google providers, provide your own code to retrieve the JWT
298
296
});
299
297
0 commit comments