_upgrade_warning.html.erb 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <% if @twitter_agent || @basecamp_agent %>
  2. <div class="alert alert-danger" role="alert">
  3. <p>
  4. <b>Warning!</b> You need to update your Huginn configuration, so your agents continue to work with the new OAuth services.
  5. </p>
  6. <br/>
  7. <% if @twitter_agent %>
  8. <p>
  9. To complete the migration of your <b>Twitter</b> agents you need to update your .env file and add the following two lines:
  10. <pre>
  11. TWITTER_OAUTH_KEY=<%= @twitter_oauth_key %>
  12. TWITTER_OAUTH_SECRET=<%= @twitter_oauth_secret %>
  13. </pre>
  14. To authenticate new accounts with your twitter OAuth application you need to log in the to <a href="https://apps.twitter.com/" target="_blank">twitter application management page</a> and set the callback URL of your application to "http<%= ENV['FORCE_SSL'] == 'true' ? 's' : '' %>://<%= ENV['DOMAIN'] %>/auth/twitter/callback".
  15. </p>
  16. <% end %>
  17. <% if @basecamp_agent %>
  18. <p>
  19. Your <b>Basecamp</b> agents could not be migrated automatically. You need to manually register an application with 37signals and authenticate Huginn to use it.<br/>
  20. Have a look at the <%= link_to 'Wiki', 'https://github.com/huginn/huginn/wiki/Configuring-OAuth-applications', target: '_blank' %> if you need help.
  21. </p>
  22. <% end %>
  23. </div>
  24. <% end -%>
  25. <% if @outdated_google_cal_agents && @outdated_google_cal_agents.length > 0 %>
  26. <dir class="container">
  27. <div class="alert alert-danger" role="alert">
  28. <p>
  29. <b>Warning!</b> Your <b>Google Calendar Publish Agents</b> are using an outdated version of Google Auth. You need to update the agent configuration, possibly with a new keyfile from Google for it to continue to work.
  30. <br/>
  31. PKCS12 key files (`.p12`) are no longer supported. Instead use RSA private keys. Edit the agents to see the updated instructions. The `google.key_secret` option is no longer needed, please remove it.
  32. <br/>
  33. The format of parameters in events passed to the agent have also changed. Parameters now are expected in underscore_case instead of camelCase (to match Ruby convention). Please update upstream agents that send events to the calendar agent.
  34. </p>
  35. <p>
  36. Outdated agents:
  37. <ul>
  38. <% @outdated_google_cal_agents.each do |agent| -%>
  39. <li><%= link_to(agent.name, edit_agent_path(agent)) %></li>
  40. <% end -%>
  41. </ul>
  42. </p>
  43. </div>
  44. </dir>
  45. <% end -%>
  46. <% if @outdated_docker_image_namespace %>
  47. <dir class="container">
  48. <div class="alert alert-danger" role="alert">
  49. <p>
  50. <b>Warning!</b> You need to change the namespace of the Huginn Docker image you are using.
  51. </p>
  52. <br/>
  53. <p>
  54. Since Huginn moved to a GitHub organization we also changed the namespace of the Docker images. Please change your configuration to the new namespace:
  55. <ul>
  56. <li><code>cantino/huginn</code> is now <code>huginn/huginn</code></li>
  57. <li><code>cantino/huginn-single-process</code> is now <code>huginn/huginn-single-process</code></li>
  58. </ul>
  59. </p>
  60. </div>
  61. </dir>
  62. <% end -%>