opro 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/.travis.yml +1 -0
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile +6 -22
  4. data/Gemfile.lock +13 -9
  5. data/README.md +48 -34
  6. data/Rakefile +2 -2
  7. data/VERSION +1 -1
  8. data/app/controllers/opro/oauth/client_app_controller.rb +19 -1
  9. data/app/controllers/opro/oauth/docs_controller.rb +21 -11
  10. data/app/controllers/opro/oauth/tests_controller.rb +6 -6
  11. data/app/models/opro/oauth/auth_grant.rb +6 -4
  12. data/app/views/opro/oauth/auth/new.html.erb +21 -22
  13. data/app/views/opro/oauth/client_app/edit.html.erb +14 -0
  14. data/app/views/opro/oauth/client_app/index.html.erb +17 -16
  15. data/app/views/opro/oauth/client_app/new.html.erb +19 -13
  16. data/app/views/opro/oauth/client_app/show.html.erb +15 -0
  17. data/app/views/opro/oauth/docs/index.html.erb +20 -21
  18. data/app/views/opro/oauth/docs/markdown/curl.md.erb +10 -10
  19. data/app/views/opro/oauth/docs/markdown/oauth.md.erb +6 -6
  20. data/app/views/opro/oauth/docs/markdown/password_exchange.md.erb +9 -9
  21. data/app/views/opro/oauth/docs/markdown/permissions.md.erb +1 -1
  22. data/app/views/opro/oauth/docs/markdown/quick_start.md.erb +21 -21
  23. data/app/views/opro/oauth/docs/markdown/refresh_tokens.md.erb +4 -4
  24. data/app/views/opro/oauth/docs/show.html.erb +4 -2
  25. data/app/views/opro/oauth/tests/index.html.erb +7 -7
  26. data/lib/generators/opro/install_generator.rb +1 -1
  27. data/lib/opro.rb +6 -6
  28. data/lib/opro/controllers/concerns/error_messages.rb +3 -3
  29. data/lib/opro/controllers/concerns/permissions.rb +1 -1
  30. data/lib/opro/rails/routes.rb +12 -3
  31. data/opro.gemspec +15 -17
  32. data/test/integration/client_app_controller_test.rb +28 -1
  33. data/test/integration/docs_controller_test.rb +1 -0
  34. data/test/models/opro/oauth/auth_grant_test.rb +7 -0
  35. data/test/test_helper.rb +6 -3
  36. metadata +91 -41
  37. data/app/views/opro/oauth/client_app/create.html.erb +0 -15
@@ -1,15 +0,0 @@
1
- <h2>Success! Here is your OAuth Client's Credentials</h2>
2
- <p>Copy these credentials down for use in your application</p>
3
- <table>
4
- <tr><td>Name: </td><td><%= @client_app.name %></td></tr>
5
- <tr><td>Client Id: </td><td><%= @client_app.app_id %></td></tr>
6
- <tr><td>Secret:</td><td><%= @client_app.app_secret %></td></tr>
7
- </table>
8
-
9
- <hr />
10
- <p>
11
- Read the
12
- <%= link_to 'Quick Start Documentation', oauth_doc_path(:quick_start) %> or
13
- <%= link_to 'Register Another Oauth Client App', new_oauth_client_app_path %>
14
- </p>
15
-