简体   繁体   English

安全 Web AppBuilder 无需提示登录即可打开

[英]Secure Web AppBuilder open without prompt login

I created a Web AppBuilder in developer edition.And my featurelayers and webmap are shared with organization in ArcGIS portal.And I am using this secure layers and webmap in my Web AppBuilder.我在开发人员版中创建了 Web AppBuilder。我的要素图层和 web 地图与 ArcGIS 门户中的组织共享。我在我的 Web AppBuilder 中使用这个安全图层和 web 地图。 When I download and run my web application in localhost,so being a secure service login prompt open,But rather than using this popup login window how can use token we already have the login token form the integrated .NET Application so how can we skip this popup login page and use token which is given to us through the API, So how can login the Web AppBuilder application using token through the API.当我在 localhost 中下载并运行我的 web 应用程序时,打开了一个安全的服务登录提示,但不是使用此弹出登录 window 如何使用令牌我们已经拥有集成 Z303CB0EF9EDB9082D61BBBE5825D9 的登录令牌,所以我们可以跳过此弹出窗口登录页面并使用通过 API 给我们的令牌,那么如何通过 API 使用令牌登录 Web AppBuilder 应用程序。

It seems that Arcgis Web Appbuilder will use jimu/tokenUtils to register the token if you pass it through the URL parameter like this:如果您通过 URL 参数传递令牌,Arcgis Web Appbuilder 将使用jimu/tokenUtils注册令牌,如下所示:

http://localhost/your_wab_application?token=YOUR_TOKEN_HERE http://localhost/your_wab_application?token=YOUR_TOKEN_HERE

After that, all request will be sent with the provided token given you access to protected content such as layers or webmaps stored in Arcgis Online (or Portal For Arcgis).之后,所有请求都将使用提供的令牌发送,让您可以访问受保护的内容,例如存储在 Arcgis Online(或 Portal For Arcgis)中的图层或 web 地图。 You'll have to test, but I think this will probably suppress the login popup from opening.您必须进行测试,但我认为这可能会阻止登录弹出窗口打开。

You can find more details about how this is done in the file jimu.js/ConfigLoader.js in your web appbuilder code.您可以在 web appbuilder 代码中的文件jimu.js/ConfigLoader.js中找到有关如何完成此操作的更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM