Improved SSL support in Gitorious
authorChristian Johansen <christian@shortcut.no>
Thu, 17 Mar 2011 11:40:26 +0000 (12:40 +0100)
committerChristian Johansen <christian@gitorious.org>
Mon, 21 Mar 2011 10:36:28 +0000 (11:36 +0100)
commit567db229ba4102cebef77073e6b217346801231d
tree427311514b98f3d706b44df49751e61663451317
parent98ddcb58bfb834ba8f81b342487b4fdb64c1852d
Improved SSL support in Gitorious

- Adds an option to gitorious.yml: use_ssl
- Forces SSL on all pages when user is logged in and on all pages requiring
  user input (even when logged out, such as the register and login pages)
- Removes the direct access to SslRequirement in environments/development.rb
  (use development in gitorious.yml instead)
- Adds tests to all functional controllers, ensuring SSL requirements are
  documented
- Adds helpers and a macro to test SSL enforcement
- Uses secure cookies
36 files changed:
NEWS
app/controllers/application_controller.rb
app/controllers/keys_controller.rb
app/controllers/messages_controller.rb
app/controllers/sessions_controller.rb
app/controllers/users_controller.rb
config/environments/development.rb
config/gitorious.sample.yml
config/initializers/gitorious_config.rb
lib/authenticated_system.rb
test/functional/admin/oauth_settings_controller_test.rb
test/functional/admin/repositories_controller_test.rb
test/functional/admin/users_controller_test.rb
test/functional/aliases_controller_test.rb
test/functional/blobs_controller_test.rb
test/functional/comments_controller_test.rb
test/functional/commits_controller_test.rb
test/functional/committerships_controller_test.rb
test/functional/events_controller_test.rb
test/functional/favorites_controller_test.rb
test/functional/groups_controller_test.rb
test/functional/keys_controller_test.rb
test/functional/licenses_controller_test.rb
test/functional/memberships_controller_test.rb
test/functional/merge_request_versions_controller_test.rb
test/functional/merge_requests_controller_test.rb
test/functional/messages_controller_test.rb
test/functional/pages_controller_test.rb
test/functional/projects_controller_test.rb
test/functional/repositories_controller_test.rb
test/functional/searches_controller_test.rb
test/functional/sessions_controller_test.rb
test/functional/site_controller_test.rb
test/functional/trees_controller_test.rb
test/functional/users_controller_test.rb
test/test_helper.rb