如何制作包含密钥的 appexchange 包? [英] How to make an appexchange package that includes the key?

查看:16
本文介绍了如何制作包含密钥的 appexchange 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 cakephp 中的第 3 方应用程序中实施 salesforce.我的消费者密钥仅在我创建的一个组织中,它在任何其他组织中都不起作用.如何制作包含密钥的 appexchange 包,以便我可以在其他组织中安装该包.谢谢

I am implementing salesforce in a 3rd party app in cakephp. My consumer key is only in one org that I created , its not working in any other org. How to make an appexchange package that includes the key so that I can install the package in other orgs. Thanks

推荐答案

您需要创建所谓的托管包,并将令牌/远程访问设置添加到该包.要创建托管包,您必须在开发者组织中启用托管命名空间,因此,我会在新的/单独的开发者版帐户中执行此操作.

You need to create whats called a managed package, and to add the token/remote access settings to that package. To create a managed package, you have to turn on a managed namespace in your developer org, for that reason, i would do this in a new/separate developer edition account.

  1. 注册一个新的开发者版帐户.立>
  2. 登录新帐户
  3. 转到设置/应用设置/创建/包,点击开发者设置部分的编辑.
  4. 按照说明为组织提供命名空间前缀.
  5. 再次从包页面,在包部分点击新建并填写表格,记得勾选托管选项.
  6. 在包详细信息页面中,单击远程访问相关列表中的新建.
  7. 填写表格并点击保存,一个新的客户 ID &将生成秘密.
  8. 您可以发布仅包含远程访问设置的包,您还需要向其中添加其他内容(例如,可能是描述您的应用的文档)
  9. 使用添加组件将您的文档或其他项目添加到包中.
  10. 点击上传按钮并按照说明将您的包提供给其他组织.
  11. 当软件包可用时,您会收到一封包含安装链接的电子邮件(通常需要 5-10 分钟).

现在您已经创建并发布了包含您的令牌的包,使用安装 URL,您现在可以在其他组织中安装该包.

Now you've created and published your package that contains your tokens, using the installation URL, you can now install that package in other orgs.

  1. 点击安装 URL 或将其粘贴到新的浏览器窗口/标签中.
  2. 使用目标组织凭据登录
  3. 在软件包安装页面,点击继续并完成安装向导.
  4. 大功告成!

目标组织中的用户现在应该能够使用您的 oauth 信息登录.

users in the target org should now be able to login with your oauth info.

这篇关于如何制作包含密钥的 appexchange 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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