Skip to main content
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    HowTo: Force Login to Primo on the New UI (per View)

    • Product: Primo
    • Product Version: August 2016 and higher
    • Relevant for Installation Type: Multi-Tenant Direct, Dedicated-Direct, Local, TotalCare



    How to force login to Primo on the New UI (per View)


    To force users to log in to Primo in order to prevent “guest” users from performing searches add the below code to the custom.js file and upload it to the relevant view(s) through the customization manager. 

    This code should only be used if authentication is set up with a single SAML authentication profile 

    app.controller('prmAuthenticationAfterController', [function () {
    var vm = this;
    vm.checkLogIn = checkLogIn;

    function checkLogIn() {
    return vm.parentCtrl.isLoggedIn;
    if (!checkLogIn()){



    app.component('prmAuthenticationAfter', {
    bindings: {parentCtrl: '<'},
    controller: 'prmAuthenticationAfterController'


    • Article last edited: 01-May-2018
    • Was this article helpful?