https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17004
--- Comment #5 from Jiri Kozlovsky <[email protected]> --- Created attachment 54068 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54068&action=edit Bug 17004: Add API route to authenticate patron This patch adds a username/cardnumber and password authentication that returns a session. POST /auth/session (login) Required form data: - "password" - either "userid" or "cardnumber". To test: 1. Make sure you are logged out from Koha. 2. Make a POST request to http://yourlibrary/api/v1/auth/session with form data "userid" => <your_user_id> and "password" => <your_password>. 3. If your userid and password is correct, you should be returned with most basic patron data and your CGISESSID. 4. Also attempt with invalid login to get an error. 5. Run tests at b/t/db_dependent/api/v1/auth.t Signed-off-by: Jiri Kozlovsky <[email protected]> Wow, brilliant work! Thanks for that, it works as expected! -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
