doorkeeper 4.0.0.rc3 → 4.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/CONTRIBUTING.md +2 -0
  4. data/Gemfile +4 -0
  5. data/NEWS.md +11 -1
  6. data/README.md +14 -20
  7. data/Rakefile +1 -1
  8. data/app/controllers/doorkeeper/application_metal_controller.rb +1 -1
  9. data/app/controllers/doorkeeper/tokens_controller.rb +1 -1
  10. data/app/helpers/doorkeeper/dashboard_helper.rb +13 -11
  11. data/doorkeeper.gemspec +1 -1
  12. data/lib/doorkeeper.rb +1 -1
  13. data/lib/doorkeeper/config.rb +6 -23
  14. data/lib/doorkeeper/helpers/controller.rb +1 -1
  15. data/lib/doorkeeper/models/access_grant_mixin.rb +2 -2
  16. data/lib/doorkeeper/models/access_token_mixin.rb +19 -15
  17. data/lib/doorkeeper/models/application_mixin.rb +3 -3
  18. data/lib/doorkeeper/models/concerns/ownership.rb +1 -1
  19. data/lib/doorkeeper/models/concerns/revocable.rb +1 -1
  20. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +1 -1
  21. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +2 -1
  22. data/lib/doorkeeper/oauth/client_credentials_request.rb +4 -3
  23. data/lib/doorkeeper/oauth/code_response.rb +13 -14
  24. data/lib/doorkeeper/oauth/helpers/uri_checker.rb +2 -1
  25. data/lib/doorkeeper/oauth/password_access_token_request.rb +6 -10
  26. data/lib/doorkeeper/oauth/refresh_token_request.rb +1 -1
  27. data/lib/doorkeeper/oauth/scopes.rb +2 -2
  28. data/lib/doorkeeper/oauth/token.rb +3 -4
  29. data/lib/doorkeeper/oauth/token_response.rb +1 -1
  30. data/lib/doorkeeper/orm/active_record.rb +0 -16
  31. data/lib/doorkeeper/orm/active_record/access_token.rb +8 -0
  32. data/lib/doorkeeper/orm/active_record/application.rb +2 -7
  33. data/lib/doorkeeper/rails/helpers.rb +1 -1
  34. data/lib/doorkeeper/rails/routes.rb +2 -1
  35. data/lib/doorkeeper/rails/routes/mapper.rb +1 -1
  36. data/lib/doorkeeper/request/password.rb +11 -1
  37. data/lib/doorkeeper/version.rb +1 -1
  38. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb +1 -1
  39. data/lib/generators/doorkeeper/templates/migration.rb +2 -2
  40. data/spec/controllers/protected_resources_controller_spec.rb +10 -10
  41. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +2 -2
  42. data/spec/dummy/app/controllers/home_controller.rb +1 -1
  43. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +2 -2
  44. data/spec/dummy/config/environments/test.rb +0 -3
  45. data/spec/lib/config_spec.rb +1 -1
  46. data/spec/lib/oauth/authorization_code_request_spec.rb +1 -1
  47. data/spec/lib/oauth/password_access_token_request_spec.rb +5 -5
  48. data/spec/lib/oauth/refresh_token_request_spec.rb +14 -8
  49. data/spec/models/doorkeeper/access_token_spec.rb +18 -1
  50. data/spec/models/doorkeeper/application_spec.rb +1 -9
  51. data/spec/requests/flows/password_spec.rb +26 -5
  52. data/spec/requests/flows/refresh_token_spec.rb +2 -2
  53. data/spec/spec_helper_integration.rb +3 -0
  54. data/spec/support/helpers/model_helper.rb +27 -5
  55. data/spec/support/http_method_shim.rb +24 -0
  56. data/spec/support/shared/models_shared_examples.rb +1 -1
  57. metadata +4 -4
  58. data/lib/generators/doorkeeper/application_scopes_generator.rb +0 -34
  59. data/lib/generators/doorkeeper/templates/add_scopes_to_oauth_applications.rb +0 -5
@@ -1,5 +0,0 @@
1
- class AddScopesToOauthApplications < ActiveRecord::Migration
2
- def change
3
- add_column :oauth_applications, :scopes, :string, null: false, default: ''
4
- end
5
- end