James Lopez
232bdd47d9
refactor code
2017-10-31 09:03:59 +01:00
James Lopez
82c758c0a8
fix spinach failure
2017-10-31 09:03:59 +01:00
James Lopez
72b7b10d52
add applications controller logic
2017-10-31 09:03:59 +01:00
James Lopez
4a6ec7c947
refactor some controllers to make them EE friendly
2017-09-28 08:46:39 +02:00
blackst0ne
a544e46bb0
Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers
2017-06-07 09:45:16 +11:00
Markus Koller
6bf7037ecd
Remove duplicated code in Oauth::AuthorizationsController
2017-03-07 14:54:36 +01:00
Timothy Andrew
4d6da770de
Implement minor changes from @dbalexandre's review.
...
- Mainly whitespace changes.
- Require the migration adding the `scope` column to the
`personal_access_tokens` table to have downtime, since API calls will
fail if the new code is in place, but the migration hasn't run.
- Minor refactoring - load `@scopes` in a `before_action`, since we're
doing it in three different places.
2016-12-16 16:29:31 +05:30
Timothy Andrew
6c809dfae8
Allow creating personal access tokens / OAuth applications with scopes.
2016-12-16 15:08:10 +05:30
Stan Hu
3b50d96b8a
Fix endless redirections when accessing user OAuth applications when they are disabled
...
Also hides the "Applications" nav button if OAuth applications are disabled by the admin.
Closes #14770
2016-06-08 05:52:04 -07:00
Stan Hu
e450892f56
Include GonHelper separately and remove created_at in factory
2016-04-14 07:25:27 -07:00
Stan Hu
c7e384aab2
Add spec for deletion of authorized OAuth2 application
...
Closes #14370
Move gon function into its own helper
2016-04-14 07:24:58 -07:00
Douwe Maan
64b57ec86a
Merge branch 'fix/gitlab-omniauth-issue' into 'master'
...
attempting to fix omniauth problem
Attempt to fix https://gitlab.com/gitlab-org/gitlab-ce/issues/3361
See merge request !2876
2016-03-19 19:03:33 +00:00
Robert Speicher
8f21e2ae40
Let oauth/applications#index
handle the profiles#applications
route
...
Previously we were doing all of kinds of code gymnastics and flash abuse
in order to work with a Doorkeeper controller but have it _appear_ at
the `/profile/applications` path. Fortunately we can just tell Rails to
use a different controller to handle that route, and we get the best of
both worlds.
2016-03-13 16:51:09 -04:00
Phil Hughes
be390cff65
Fixed Ruby style error
2016-03-04 09:06:07 +00:00
Phil Hughes
33ba32e6cc
Applications tab on profile settings
...
Closes #13855
2016-03-04 09:06:07 +00:00
James Lopez
ce45389a4d
another attempt to fix oauth issue
2016-02-19 14:22:06 +01:00
James Lopez
9597920c63
attempting to fix omniauth problem
2016-02-18 18:47:35 +01:00
Dmitriy Zaporozhets
90c338a495
Move helpers back to original directory
2015-09-09 14:37:34 +02:00
Douwe Maan
046b283127
Groundwork for merging CI into CE
2015-08-25 18:42:46 -07:00
Douwe Maan
cd5e79e98b
Correctly show anonymous authorized applications under Profile > Applications.
2015-07-02 11:53:31 +02:00
Douwe Maan
96d6fdc27c
Add option to disallow users from registering any application to use GitLab as an OAuth provider
2015-05-29 13:29:16 +02:00
Douwe Maan
92fd3ccee0
Add helpers for header title and sidebar, and move setting those from controllers to layouts.
2015-05-01 10:39:16 +02:00
Douwe Maan
5121576e0c
before_action > before_filter.
2015-04-30 20:02:21 +02:00
Douwe Maan
26ad250989
Add a page title to every page.
2015-04-30 19:12:15 +02:00
Jeroen van Baarsen
5a4ebfb47a
Fixed the Rails/ActionFilter cop
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-04-20 15:39:37 +02:00
Valery Sizov
20028523b5
Application admin scaffold
2015-01-17 15:40:09 -08:00
Dmitriy Zaporozhets
aadfb3665f
Fix tests and add message if no oauth apps
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-25 18:46:19 +02:00
Dmitriy Zaporozhets
592e396869
Rework oauth2 feature
...
* improve UI
* add authorization
* add separate page for oauth applications
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-25 18:35:04 +02:00
Dmitriy Zaporozhets
7fe8d41d88
Improve code style
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-25 16:46:28 +02:00
Valery Sizov
e41dadcb33
Doorkeeper integration
2014-12-24 15:38:07 +02:00