]> git.koha-community.org Git - koha.git/commit
Bug 22071: Make authenticate_api_request stash koha.user in OAuth use case
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Jan 2019 15:46:37 +0000 (12:46 -0300)
committerJesse Maseto <jesse@bywatersolutions.com>
Fri, 11 Jan 2019 19:32:34 +0000 (19:32 +0000)
commit8793c0e59180326c2859ac19d5fbec94b19e8cf7
tree5b71c6d600ff44d92d285c8bf57a084d7af40997
parentbe5c32a5b59fe54f9d8f50b81e0f20e059d048f2
Bug 22071: Make authenticate_api_request stash koha.user in OAuth use case

This patch makes the OAuth code stash the requestion Koha::Patron.

To test:
- Apply the tests patch:
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/auth_authenticate_api_request.t
=> FAIL: Tests fail :-(
- Apply this patch
- Run:
 k$ prove t/db_dependent/api/v1/auth_authenticate_api_request.t
=> SUCCESS: Tests pass :-D
- Sign off =D

Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 613a0034e08af84af1e2198156bbfc6900ba6551)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 84ddb45e884394d08ba4dc836d3209e11e351048)

Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
Koha/REST/V1/Auth.pm