Commit graph

20 commits

Author SHA1 Message Date
Markus Koller
c498289048 Implement OpenID Connect identity provider 2017-03-07 14:54:35 +01:00
Timothy Andrew
7fa06ed55d Calls to the API are checked for scope.
- Move the `Oauth2::AccessTokenValidationService` class to
  `AccessTokenValidationService`, since it is now being used for
  personal access token validation as well.

- Each API endpoint declares the scopes it accepts (if any). Currently,
  the top level API module declares the `api` scope, and the `Users` API
  module declares the `read_user` scope (for GET requests).

- Move the `find_user_by_private_token` from the API `Helpers` module to
  the `APIGuard` module, to avoid littering `Helpers` with more
  auth-related methods to support `find_user_by_private_token`
2016-12-16 16:29:31 +05:30
Douglas Barbosa Alexandre
e28058c410 Validate if project label title does not exist at group level 2016-10-19 14:58:24 -02:00
Dmitriy Zaporozhets
8367e4abeb Implement new UI for pagination 2016-01-20 21:27:01 -05:00
Drew Blessing
f4ec906e90 Use devise paranoid mode and ensure the same message is returned every time
Skipped CI because it has already passed. Had to rebase due to CHANGELOG.
2015-12-09 18:40:37 -06:00
Yorick Peterse
97f8c6279f Added total query time to Sherlock
This makes it easier to see if a problem is caused by slow queries or
slow Ruby code (unrelated to any SQL queries that might be used).
2015-11-24 10:57:21 +01:00
Yorick Peterse
7b5fd8742e Track the amount of times views are rendered 2015-11-09 14:29:10 +01:00
Yorick Peterse
dec3e4ce64 Added Sherlock, a custom profiling tool for GitLab
Sherlock will be a new GitLab specific tool for measuring the
performance of Rails requests (and SideKiq jobs at some point). Some of
the things that are currently tracked:

* SQL queries along with their timings, backtraces and query plans
  (using "EXPLAIN ANALYZE" for PostgreSQL and regular "EXPLAIN" for
  MySQL)
* Timings of application files (including views) on a per line basis
* Some meta data such as the request method, path, total duration, etc

More tracking (e.g. Rugged or gitlab-shell timings) might be added in
the future.

Sherlock will replace any existing tools we have used so far (e.g.
active_record_query_trace and rack-mini-profiler), hence the
corresponding Gems have been removed from the Gemfile.

Sherlock can be enabled by starting Rails as following:

    ENABLE_SHERLOCK=1 bundle exec rails s

Recorded transactions can be found at `/sherlock/transactions`.
2015-11-09 14:29:10 +01:00
Robert Speicher
c7b43126bd Add recently_reset message to Devise translations 2015-10-01 21:46:51 -04:00
Robert Speicher
19748ddee6 Update config/locales/devise.en.yml with latest version
It looks like a lot of changes but it's not, they just sorted it
alphabetically.
2015-10-01 21:38:39 -04:00
Douwe Maan
046b283127 Groundwork for merging CI into CE 2015-08-25 18:42:46 -07:00
Douwe Maan
0c4653e101 Improve OAuth application flash messages. 2015-05-13 09:41:56 +02:00
Dmitriy Zaporozhets
64f5d6ddf0 Remove signout flash message because it also makes no sense.
You get redirected after signuout to gitlab.com and see this message on login page which makes no sense.
2015-03-19 04:26:36 +00:00
Dmitriy Zaporozhets
1f835a81a7 Remove success signin message by devise
I find it really annoying every time I login into GitLab it shows me
that I successfully signed in. But this makes no sense to me. I already
see dashboard and dont see login screen. Its obvious I signed in
successfully. Instead it just show annyoing message every time taking
part of space on my screen.
2015-03-18 21:20:43 -07:00
Valery Sizov
e41dadcb33 Doorkeeper integration 2014-12-24 15:38:07 +02:00
Marin Jankovski
108be8a666 Update to accomodate devise deprecations and backward incompatible changes. 2014-07-10 13:56:35 +02:00
Dmitriy Zaporozhets
ed9543ff5d update devise gem 2013-02-28 21:06:16 +02:00
skarphet
107a4e386a Devise locale updated to stay consistent with GitLab 2012-12-04 19:19:26 +01:00
Nihad Abbasov
2abd054b0c update devise 2012-07-05 23:50:24 -07:00
gitlabhq
9ba1224867 init commit 2011-10-09 00:36:38 +03:00