The application location needs to be identified. This is the URL the integrated application is running on, e.g. https://app.geo.com.
Contact Orbit Support, and provide your application location to enable redirect upon IMS login.
A callback document must be prepared and then made available.
The URL to this document will be used to hand off the authorization code to the SDK.
For security reasons, it also holds the application domain, so it cannot be used to communicate an authorization code to an untrusted domain.
<Install Dir>/program/wwwroot/viewer/assets/oauth-flow-callback.htmlconst PARENT_LOCATIONS = [“http://localhost”]; const PARENT_LOCATIONS = [“http://localhost”,“https://app.geo.com”];2 Options:
Upon sharing your application domain with Orbit Support, see above. You will receive your custom URL to the callback document.
const PARENT_LOCATIONS = [“http://localhost”]; const PARENT_LOCATIONS = [“http://localhost”,“https://app.geo.com”];
To enable the 3DM Cloud (Bentley IMS) login option, you need to provide these options at startup :
var options= new AMap(); options.set(Constants.STARTUP_BENTLEY_IMS_ENABLE,true); options.set(Constants.STARTUP_BENTLEY_IMS_REDIRECT_URL,"<your-callback-handler-url>"); let viewer = new SDKViewer("app name",divElement,options);