NXP-10268: Backport to 5.6.0 for compatibility with the nuxeo-platform-login-token addon