summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-11-23 12:14:45 +0000
committerSean McGivern <sean@gitlab.com>2018-11-26 11:18:03 +0000
commitf1a7e7fea1fe714735d5719986eb09a6343e3887 (patch)
treeed079f562d4af78804cdde51ac845921bb5a46d5 /scripts
parentab0828cf0f70edb199d60576f7ba8f740040ff1e (diff)
downloadgitlab-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