如何制作包含密钥的appexchange包?

发布于 2024-10-06 03:57:07 字数 123 浏览 0 评论 0原文

我正在 cakephp 的第三方应用程序中实施 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

断肠人 2024-10-13 03:57:07

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

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

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

  1. 单击或将安装 URL 粘贴到新的浏览器窗口/选项卡中。
  2. 目标组织凭据登录
  3. 使用包安装页面中的
  4. ,单击继续并逐步完成安装向导。全部完成!

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

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. Sign up a new developer edition account.
  2. Login to the new account
  3. Goto setup / app setup / create / packages, click edit on the developer settings section.
  4. follow the instructions to give the org a namespace prefix.
  5. from the package page again, in the packages section click new and fill out the form, remember to check the managed option.
  6. from the package detail page, click new in the remote access related list.
  7. fill in the form and click save, a new client id & secret will be generated.
  8. You can publish a package with just a remote access settings in it, you'll need to add something else to it as well (perhaps a document that describes your app for example)
  9. use the add components to add your doc, or other item(s) to the package.
  10. click the upload button and follow the instructions to make your package available to other orgs.
  11. when the package is available, you'll get an email (normally 5-10 minutes) that contains the installation link.

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. click or paste the installation URL into a new browser window/tab.
  2. login with the target orgs credentials
  3. from the package installation page, click continue and walk through the install wizard.
  4. all done!

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文