Bug 22600: Add 'api' to interface types and set appropriately
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 28 Mar 2019 11:33:00 +0000 (11:33 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 10 Apr 2019 19:43:11 +0000 (19:43 +0000)
commitc5bc2563a856981eab29637fb2da0f6f014c0d6b
tree80f0b31efe6edb553dbfa253da959b3a2a3dfc03
parent9ec4d86636ffd4a11863cafe8d4eddb6e55c13db
Bug 22600: Add 'api' to interface types and set appropriately

This patch adds 'api' as a valid interface and sets it appropriately for
both the new REST api and previous /svc/ api's.  Handling to keep the
interface of a logged in session is included such that if the OPAC or
Intranet use the API's internally via a Cookie we will maintain the
interface throughout the session.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Auth.pm
C4/Context.pm
Koha/REST/V1/Auth.pm