]> git.koha-community.org Git - koha.git/commit
Bug 20624: (QA follow-up) Handle missing deps gracefuly
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 3 May 2018 18:29:22 +0000 (15:29 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 May 2018 15:56:02 +0000 (12:56 -0300)
commit763343a152b1e2a7a0c4fb6f6b8fd685843eb562
treee0c3542f13ddde8c5fc9355d565880f5b5882ad9
parenta8579ac6c4fac0a660b506949bc47fcc7faf7674
Bug 20624: (QA follow-up) Handle missing deps gracefuly

This patch makes the /token endpoint and the authenticate_api_request
method behave correctly in the event of missing deps for OAuth2.

To test:
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/oauth.t
=> FAIL: The behaviour is not implemented
- Apply this patch
- Run:
 k$ prove t/db_dependent/api/v1/oauth.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Auth.pm
Koha/REST/V1/OAuth.pm