When users are directed to the services page (e.g. from a database) and are not already logged in, Primo will trigger a login. This should work for both PDS and non-PDS authentication.
- Make sure you've installed and configured primo-explore-devenv.
- Navigate to your template/central package root directory. For example:
- If you do not already have a
package.jsonfile in this directory, create one:
npm init -y
- Install this package:
npm install primo-explore-force-services-page-auth --save-dev
Once this package is installed, add
forceServicesPageAuth as a dependency for your custom module definition.
var app = angular
Note: If you're using the
--browserify build option, you will need to first import the module with: