diff options
author | Sean McGivern <sean@gitlab.com> | 2018-11-23 12:14:45 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-11-26 11:18:03 +0000 |
commit | f1a7e7fea1fe714735d5719986eb09a6343e3887 (patch) | |
tree | ed079f562d4af78804cdde51ac845921bb5a46d5 /scripts | |
parent | ab0828cf0f70edb199d60576f7ba8f740040ff1e (diff) | |
download | gitlab-ce-f1a7e7fea1fe714735d5719986eb09a6343e3887.tar.gz |
Allow profiler to authenticate by stubbing users directly54327-profiler-doesn-t-work-with-auth-now
Previously, we used a personal access token. This had a couple of
problems:
1. If the user didn't have a PAT, we couldn't impersonate them.
2. It depended on reading the raw PAT from the database.
Instead, we can monkey-patch the authentication methods on
ApplicationController (overriding the Devise ones), and remove them once
we're done. This does mean that profiles will not profile auth
correctly, so for that, use a PAT directly.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions