[Koha-bugs] [Bug 24861] Unable to setPatronPasswordPublic using REST API
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Apr 7 12:59:42 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24861
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to David Cook from comment #0)
> I've tried POST /api/v1/public/patrons/{patron_id}/password with
> RESTPublicAPI enabled (using koha-testing-docker with Plack enabled), but I
> keep getting 401 errors.
>
> curl http://localhost:8080/api/v1/public/patrons/42/password -d
> '{"old_password":"OLD","password":"NEW","password_repeated":"NEW"}'
>
> {"error":"Authentication failure."}
What are you expecting here? To modify the password without auth?
> With RESTBasicAuth enabled and using the username and password for patron
> #42:
>
> curl -u <username:password>
> http://localhost:8080/api/v1/public/patrons/42/password -d
> '{"old_password":"OLD","password":"NEW","password_repeated":"NEW"}'
>
> {"error":"Authorization failure. Missing required
> permission(s).","required_permissions":null}
>
> Perhaps I'm doing something wrong but this looks like a bug to me?
It works for me on master.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list