从团队网站导航启动SharePoint 2013应用程序 [英] Launch a SharePoint 2013 App from team site navgation

查看:123
本文介绍了从团队网站导航启动SharePoint 2013应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题可能有一个简单的答案,但请招待我。用例如下:

There is probably a simple answer to this question but please entertain me. The use case is as follows:

我有一个提供商托管的应用程序有三个页面"a.aspx,b.aspx,c.aspx"和(例如)。我还有一个default.aspx页面,它只是a,b和c的登陆页面,但没有其他用途。我想在SharePoint团队网站
(左)导航中创建链接,这将允许我转到三个子页面之一。

I have a provider-hosted app with three pages "a.aspx, b.aspx, c.aspx" (for example). I also have a default.aspx page that simply is a landing page for a, b, and c, but serves no other purpose. I want to create links in the SharePoint team site (left) navigation that would allow me to go to one of the three sub-pages.

由于应用程序本身指向单个定义的页面,我甚至认为我可以将页面作为查询字符串参数传递,并在页面加载时进行重定向(如果不是null)。但是,这如何与app令牌一起使用,特别是生成
表格["SPAppToken"]。看起来应用程序链接使用"_layouts / 15 / appredirect.aspx重定向?instance_id = f2120644%2D2ce9%2D4e28%2Da52a%2De98d41cf00ba""此instance_id与我的客户端ID不匹配。我想我的问题归结为:
有没有办法用我的应用名称或客户端ID调用appredirect.aspx并重定向?

Since the app itself points to a single defined page, I was even thinking that I could pass the page as a query string argument and do a redirect on page load (if not null). However, how does this work with the app token, specifically generating the Form["SPAppToken"]. It looks like the app link redirects using "_layouts/15/appredirect.aspx?instance_id=f2120644%2D2ce9%2D4e28%2Da52a%2De98d41cf00ba" This instance_id does not match my client id. I guess my question boils down to: is there a way to call appredirect.aspx with my app name or client id and have it redirect?

提前致谢!

推荐答案

对于您的提供商托管的应用程序,是使用高信任服务器到服务器身份验证还是低信任?或只是访问SharePoint数据视图跨域库?

for your provider hosted App, is it using high trust server to server authentication, or low trust? or just access SharePoint data view cross domain library?

http://blogs.msdn.com/b/kaevans/archive/2013/04/05/inside-sharepoint-2013-oauth-context-tokens.aspx


这篇关于从团队网站导航启动SharePoint 2013应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆