gitlab-org--gitlab-foss/spec/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 Add "Confirm user" button in user admin page 2015-08-05 00:35:53 -07:00
groups Fix bug where avatar filenames were not actually deleted from the database during removal. 2015-05-07 10:00:35 -07:00
import Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab 2015-08-23 09:23:44 -07:00
profiles Add User#disable_two_factor! 2015-07-10 16:18:30 -04:00
projects Merge branch 'disable-internal-tracker-when-external-in-use' into 'master' 2015-08-14 11:01:43 +00:00
application_controller_spec.rb Fix 403 Access Denied error messages when accessing Labels section in a project that has MRs disabled but issues enabled 2015-06-18 03:15:05 -07:00
autocomplete_controller_spec.rb Fix bug preventing invite by e-mail 2015-08-21 13:47:56 -07:00
blame_controller_spec.rb Fix blame view line groupings 2015-08-20 01:27:29 -07:00
blob_controller_spec.rb Fix Style/AlignHash cop violations 2015-06-22 22:24:39 -07:00
branches_controller_spec.rb Fix errors deleting and creating branches with encoded slashes 2015-08-01 23:33:33 -07:00
commit_controller_spec.rb Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
commits_controller_spec.rb Fix Style/AlignHash cop violations 2015-06-22 22:24:39 -07:00
help_controller_spec.rb Fix Style/AlignHash cop violations 2015-06-22 22:24:39 -07:00
namespaces_controller_spec.rb Add tests. 2015-03-27 10:27:13 +01:00
profile_keys_controller_spec.rb Only publish ssh key-type and key 2015-08-04 14:33:18 +02:00
projects_controller_spec.rb Fix Style/AlignHash cop violations 2015-06-22 22:24:39 -07:00
root_controller_spec.rb Add RootController 2015-06-13 17:59:11 -04:00
uploads_controller_spec.rb Reject access to group/project avatar if the user doesn't have access. 2015-03-10 17:13:02 +01:00
users_controller_spec.rb Make username parameter for Users#show case-insensitive 2015-07-18 17:54:56 -04:00