This is documentation of a bèta release.
For documentation on the current version, please check Knowledge Base.
For documentation on the current version, please check Knowledge Base.
Example: Bentley IMS Auto-Login to Publisher Publication
The example demonstrates an Auto-Login with Bentley IMS Named User to access a 3DM Publisher Publication.
To test this example successfully, your user requires Named User access to this demo publication.
Contact orbit.support@bentley.com.
A popup window is used, to connect with Bentley IMS. Verify your browser settings to allow pop-up windows.
Preparations
The application location and call back handler must be identified, see preparation Bentley IMS & SSO for 3DM Viewer.
Publisher Auto-Login
Use the following auto-login settings to automatically trigger a publisher login :
- Replace
<publisher-host>
with the full URL to the publisher server.
- Replace
<publication-name>
with the name of the publication you would like to open.
// Prepare autologin options let loginOptions = new AMap(); loginOptions.set(Constants.LOGIN_MODE, Constants.LOGINMODE_BENTLEY_PUBLISHER); loginOptions.set(Constants.LOGIN_HOST, "<publisher-location"); loginOptions.set(Constants.LOGIN_PUBLICATION_NAME,"<publication-name>"); // Prepare startup options let options = new AMap(); options.set(Constants.STARTUP_AUTO_LOGIN,loginOptions); // ...add other options here... // Create viewer instance let viewer = new SDKViewer("app name",divElement,options);
Last modified:: 2023/10/04 12:46