|
Line
Link Here
|
| 0 |
-- Auth.pm.old 2020-06-18 15:16:53.062848795 +0800 |
0 |
++ Auth.pm 2020-06-18 15:16:37.671561273 +0800 |
|
Lines 157-164
Link Here
|
| 157 |
|
157 |
|
| 158 |
my $authorization = $spec->{'x-koha-authorization'}; |
158 |
my $authorization = $spec->{'x-koha-authorization'}; |
| 159 |
|
159 |
|
| 160 |
my $authorization_header = $c->req->headers->authorization; |
160 |
my $headers = $c->req->content->headers; |
| 161 |
|
161 |
my $authorization_header = $headers->header('x-koha-authorization'); |
| 162 |
if ($authorization_header and $authorization_header =~ /^Bearer /) { |
162 |
if ($authorization_header and $authorization_header =~ /^Bearer /) { |
| 163 |
# attempt to use OAuth2 authentication |
163 |
# attempt to use OAuth2 authentication |
| 164 |
if ( ! Module::Load::Conditional::can_load( |
164 |
if ( ! Module::Load::Conditional::can_load( |