Releases: indexdata/foliojs
Releases · indexdata/foliojs
Release list
v1.2.0
- The sample script
bin/folio-port-ldp-queries.jsdoes not depend on the externaluuidpackage, which haemorrhages new major versions every few picoseconds. Instead it usesrandomUUIDfrom the built-incryptopackage. - Update many dependencies to patch vulnerabilities.
v1.1.0
- Provide access to old-style authentication token (as
session.getToken()) and new-style session cookie (assession.getSessionCookie()). Document these new session methods, with notes on why they should not be used. Fixes #2. - Re-authentication timeout is configurable using the
FOLIOJS_SESSION_TIMEOUTenvironment variable. Fixes #3. - If the
FOLIOJS_OLD_AUTHenvironment variable is set, authentication is limited to old-style (session token). Fixes #4.
v1.0.0
- BREAKING:
session.close()is introduced, and must be called when a session is no longer needed, otherwise the program will not terminate. - Use new-style cookie-based authentication when available, instead of old
X-Okapi-Tokenauthentication, refreshing the token after half of its TTL has elapsed. - Add logging category for authentication/reauthentication.
- Internally, use an HTTPError exception class.
v0.0.2
- When the response to
authn/loginlacks an Okapi token in its body (which happens sometimes but I don't know under what circumstances), the token is copied there from thex-okapi-tokenheader. As a result, login works against such services.