如何在Alfresco Share 3.4中获得alf_ticket [英] How to get alf_ticket in Alfresco Share 3.4
问题描述
我一直在使用 context.properties.alfTicket
来获取我之前一直在工作的一些自定义内容的票证,但最近我从Alfresco 3.0迁移到了3.4 。
I've been using context.properties.alfTicket
to get a ticket for some custom stuff I've been working before, but recently I migrated from Alfresco 3.0 to 3.4.
现在我在Alfresco Share中找不到身份验证票 - 有没有办法解决这个问题?无论是在JavaScript(服务器端,当然)还是freemarker。
Now I can't find the authentication ticket in Alfresco Share - is there a way to get this? Whether in JavaScript (server-side, of course) or freemarker.
编辑:我添加了赏金。我会给那些给我代码示例的人提供如何获得中的
document-details.get.js
或 document-details.get.html.ftl
。
I added a bounty. I'll give the bounty to whoever gives me the code sample on how to get the alf_ticket
in document-details.get.js
or document-details.get.html.ftl
.
推荐答案
在Alfresco webscript中你可以使用 session.ticket
,这应该在Share to中可用。这个指向 alfresco 3.4 javascript api 的链接也很有用,我不知道我认为这是露天网站上任何地方的参考资料。
In an Alfresco webscript you could use session.ticket
, this should be available in Share to. This link to the alfresco 3.4 javascript api could also be useful, I don't think this is references anywhere on the alfresco site.
这篇关于如何在Alfresco Share 3.4中获得alf_ticket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!