]> git.koha-community.org Git - koha.git/commit
Bug 20624: Net::OAuth2::AuthorizationServer is not a hard dependency
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 May 2018 17:58:55 +0000 (14:58 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 May 2018 15:56:03 +0000 (12:56 -0300)
commit17e8acad70c778a1d544ad2cb22e0fc98ba2f312
tree9d2a4576b27e2adcff9361629e7a8f478df04301
parent432dd41418003494c6db24ef0fc9d81f83186ba3
Bug 20624: Net::OAuth2::AuthorizationServer is not a hard dependency

While we get packaging sorted, Net::OAuth2::AuthorizationServer is not a
hard dependency for Koha and the feature requiring it is disabled by
default.

This patch:
- Makes the dependency optional
- Makes the unit tests for the OAuth2 client credentials flow skip if
  the dependency is not met.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Installer/PerlDependencies.pm
Koha/REST/V1/Auth.pm
Koha/REST/V1/OAuth.pm
t/db_dependent/api/v1/oauth.t