Closed
Bug 1190693
Opened 9 years ago
Closed 9 years ago
Backport bug 1175643 to bmo (Rewrite auth delegation to use a server-side POST instead of a client-side GET to delegate API Key)
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dylan, Assigned: dylan)
Details
Attachments
(1 file)
3.01 KB,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
It does what it says on the tin
Comment 2•9 years ago
|
||
Comment on attachment 8642802 [details] [diff] [review] 1190693_1.patch Review of attachment 8642802 [details] [diff] [review]: ----------------------------------------------------------------- r=dkl ::: auth.cgi @@ +95,5 @@ > + $ua->protocols_allowed(['http', 'https']); > + # If the URL of the proxy is given, use it, else get this information > + # from the environment variable. > + my $proxy_url = Bugzilla->params->{'proxy_url'}; > + if ($proxy_url) { nit: if (my $proxy_url = Bugzilla->params->{'proxy_url'}) { $ua->proxy(['http', 'https'], $proxy_url); } else ... @@ +112,5 @@ > + eval { > + my $data = decode_json($resp->content); > + $callback_uri->query_param(callback_result => $data->{result}); > + }; > + if ($@) { Nit: can shorten to $@ && ThrowUserError('auth_delegation_json_error', { json_text => $resp->content }); print $cgi->redirect($callback_uri);
Attachment #8642802 -
Flags: review?(dkl) → review+
Assignee | ||
Comment 3•9 years ago
|
||
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git 99bec2e..589ec37 master -> master
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Summary: Backport bug 1175643 to bmo for safer auth delegation → Backport bug 1175643 to bmo (Rewrite auth delegation to use a server-side POST instead of a client-side GET to delegate API Key)
You need to log in
before you can comment on or make changes to this bug.
Description
•