@orbis-cascade/primo-explore-force-services-page-auth
v1.1.0
Published
force non-logged-in primo-explore users to authenticate when they are redirected to the services page.
Downloads
5
Readme
primo-explore-force-services-page-auth
Features
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.
Install
- Make sure you've installed and configured primo-explore-devenv.
- Navigate to your template/central package root directory. For example:
cd primo-explore/custom/MY_VIEW_ID
- If you do not already have a
package.json
file in this directory, create one:npm init -y
- Install this package:
npm install primo-explore-force-services-page-auth --save-dev
Usage
Once this package is installed, add forceServicesPageAuth
as a dependency for your custom module definition.
var app = angular.module('viewCustom', ['forceServicesPageAuth'])
Note: If you're using the --browserify
build option, you will need to first import the module with:
import 'forceServicesPageAuth';