Bugzilla – Attachment 105591 Details for
Bug 22522
API authentication breaks with updated Mojolicious version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[19.11.x] Bug 22522: Fail back to ->openapi->spec
1911x-Bug-22522-Fail-back-to--openapi-spec.patch (text/plain), 846 bytes, created by
Kyle M Hall (khall)
on 2020-06-05 14:47:40 UTC
(
hide
)
Description:
[19.11.x] Bug 22522: Fail back to ->openapi->spec
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-06-05 14:47:40 UTC
Size:
846 bytes
patch
obsolete
>From f1e499ccdd94a85363f005d698bfdfb2db43a746 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 3 Jun 2020 08:19:59 -0400 >Subject: [PATCH] [19.11.x] Bug 22522: Fail back to ->openapi->spec > >--- > Koha/REST/V1/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/REST/V1/Auth.pm b/Koha/REST/V1/Auth.pm >index 8bffc977da..630db04e4a 100644 >--- a/Koha/REST/V1/Auth.pm >+++ b/Koha/REST/V1/Auth.pm >@@ -136,7 +136,7 @@ sub authenticate_api_request { > > my $user; > >- my $spec = $c->match->endpoint->pattern->defaults->{'openapi.op_spec'}; >+ my $spec = $c->openapi->spec || $c->match->endpoint->pattern->defaults->{'openapi.op_spec'}; > my $authorization = $spec->{'x-koha-authorization'}; > > my $authorization_header = $c->req->headers->authorization; >-- >2.24.1 (Apple Git-126)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22522
:
86756
|
93592
|
98061
|
98089
|
98372
|
98557
|
98558
|
98559
|
98665
|
98666
|
98667
|
99181
|
99182
|
99183
|
105591
|
105639
|
105657
|
105658
|
105659
|
105692