]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 4 Jan 2019 03:13:39 +0000 (03:13 +0000)
commit613a0034e08af84af1e2198156bbfc6900ba6551
treea5bdc22429fdf625d1cf8cea8b56c183c73fc2c7
parent2067b8e3f8cb363370897ff179bcdbf5c97cbbbb
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>
Koha/REST/V1/Auth.pm