gitlab-org--gitlab-foss/app/controllers
Stan Hu ed1d4fa477 Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab
and request them each session. Pass these tokens to the project import data.

This prevents the need to encrypt these tokens and clear them in case they
expire or get revoked.

For example, if you deleted and re-created OAuth2 keys for Bitbucket, you would get
an Error 500 with no way to recover:

```
Started GET "/import/bitbucket/status" for x.x.x.x at 2015-08-07 05:24:10 +0000
Processing by Import::BitbucketController#status as HTML
Completed 500 Internal Server Error in 607ms (ActiveRecord: 2.3ms)

NameError (uninitialized constant Import::BitbucketController::Unauthorized):
  app/controllers/import/bitbucket_controller.rb:77:in `rescue in go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:74:in `go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:86:in `bitbucket_unauthorized'
```

Closes #1871
2015-08-23 09:23:44 -07:00
..
admin Import sources: settings in the admin interface 2015-08-20 11:28:27 +02:00
concerns Refactor SessionsController to use a controller concern 2015-05-14 14:24:05 -04:00
dashboard Add helpers for header title and sidebar, and move setting those from controllers to layouts. 2015-05-01 10:39:16 +02:00
explore Allow listing of archived projects 2015-08-19 13:46:59 +02:00
groups Use before_actions 2015-07-31 14:15:49 +02:00
import Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab 2015-08-23 09:23:44 -07:00
oauth Correctly show anonymous authorized applications under Profile > Applications. 2015-07-02 11:53:31 +02:00
profiles Allow user to specify content he wants to see on project page 2015-07-13 18:24:15 +02:00
projects Fix blame view line groupings 2015-08-20 01:27:29 -07:00
abuse_reports_controller.rb Improve wording in abuse report form 2015-08-06 15:15:17 +02:00
application_controller.rb Import sources: show only enabled sources 2015-08-20 12:13:22 +02:00
autocomplete_controller.rb Fix bug preventing invite by e-mail 2015-08-21 13:47:56 -07:00
confirmations_controller.rb
dashboard_controller.rb projects doesn't seem to be a valid action in this controller 2015-05-16 23:04:45 +10:00
groups_controller.rb Raise alert when group is deleted. 2015-07-30 14:11:26 +03:00
help_controller.rb Use File.join instead of Rails.root.join in HelpController 2015-08-18 09:08:03 -07:00
invites_controller.rb Add a page title to every page. 2015-04-30 19:12:15 +02:00
namespaces_controller.rb
omniauth_callbacks_controller.rb Allow custom label to be set for authentication providers. 2015-07-23 15:20:12 +02:00
passwords_controller.rb Use User#two_factor_enabled instead of otp_required_for_login 2015-06-19 15:14:37 -04:00
profiles_controller.rb Merge branch 'audit_log' into 'master' 2015-07-06 10:09:53 +00:00
projects_controller.rb Mention group and project name in flash messages upon create, update and delete. 2015-07-30 01:22:16 +03:00
registrations_controller.rb Fix error when deleting a user who has projects 2015-06-23 04:39:49 -07:00
root_controller.rb Refactor RootController 2015-06-13 17:59:13 -04:00
search_controller.rb Add helpers for header title and sidebar, and move setting those from controllers to layouts. 2015-05-01 10:39:16 +02:00
sessions_controller.rb Fix redirection after sign in when using auto_sign_in_with_provider 2015-08-12 17:31:35 +02:00
snippets_controller.rb Update controller filters 2015-06-26 16:44:21 +02:00
uploads_controller.rb Don't symbolize params. 2015-05-11 11:55:02 +02:00
users_controller.rb Fix title on user page. 2015-05-01 11:33:54 +02:00