[Koha-bugs] [Bug 28157] Add the ability to set a library from which an API request pretends to come from

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 23 01:28:54 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28157

--- Comment #15 from David Cook <dcook at prosentient.com.au> ---
Actually, after reviewing the patches again, I think that I get the idea.

With an interactive session, we're logging in with username, password, and
target branch.

However, with an API session, we're logging in using only username and
password, so we don't really have any way of providing a branch.

So unless we require people to switch branches using an API endpoint first, the
only other option is to provide that x-koha-library header or I suppose embed
the library ID in the route like you've suggested.

I suppose an alternative would be to pass the target branch in parameters but
that would only work for certain endpoints. 

Hmm feels too abstract at the moment for me to really think of concrete
examples.

But I suppose the patch is already pushed so it doesn't really matter anymore
heh.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list