This guide documents the types of requests that the Palace App's mobile applications send to the Content Manager (CM) when trying to borrow a book. It includes details on how barcode and password/PIN information are used to authenticate users. This documentation will be useful for external integration teams looking to build integrations into our systems.
The Palace App uses two primary forms of authentication: Basic and the newly introduced Token Authentication.
In Basic Authentication, the barcode and PIN/password are combined into a single string separated by a colon. This string is then Base64 encoded and sent as part of the HTTP header to authenticate the user.
123456
and the PIN is 7890
, the concatenated string would be 123456:7890
.123456:7890
would be Base64 encoded to MTIzNDU2Ojc4OTA=
.Authorization
header prefixed with the word Basic
followed by a space. So, the final header would look like:Authorization: Basic MTIzNDU2Ojc4OTA=
Header:
Accept-Language: ""
Authorization: Basic MTIzNDU2Ojc4OTA=
Endpoint:
GET <https://gorgon.staging.palaceproject.io/lyrasis-reads/works/URI/urn:uuid:ce3311a0-be66-4067-a737-d8f0362eddc2/borrow>
Header: