# HG changeset patch # User robcast # Date 1459506674 -7200 # Node ID 897941bd7f07fec8a685eb62770c8d6fe7dbdae8 # Parent 90bc0c7664d5f6004f02dee9d15a0b142cc6de8e oauth authentication works for scroll-background and birdseye view too. diff -r 90bc0c7664d5 -r 897941bd7f07 webapp/src/main/webapp/jquery/jquery.digilib.oauth.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.oauth.js Fri Apr 01 12:17:36 2016 +0200 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.oauth.js Fri Apr 01 12:31:14 2016 +0200 @@ -24,7 +24,9 @@ /** * digilib OAuth / OpenID Connect plugin. * - * Switches Scaler into error-code mode and listens for image load errors. + * Provides "authenticate" login button. + * + * Optionally switches Scaler into error-code mode and listens for image load errors. * When an error occurs, redirect browser to authentication URL. */ (function($) { @@ -169,6 +171,10 @@ $.extend(digilib.buttons, buttons); // add "id_token" to Scaler parameters digilib.defaults.scalerParamNames.push('id_token'); + digilib.defaults.previewImgParamNames.push('id_token'); + if (digilib.defaults.birdDivParams != null) { + digilib.defaults.birdDivParams.push('id_token'); + } };