Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

force non-logged-in primo-explore users to authenticate when they are redirected to the services page.

License

Notifications You must be signed in to change notification settings

alliance-pcsg/primo-explore-force-services-page-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Make sure you've installed and configured primo-explore-devenv.
  2. Navigate to your template/central package root directory. For example:
    cd primo-explore/custom/MY_VIEW_ID
    
  3. If you do not already have a package.json file in this directory, create one:
    npm init -y
    
  4. 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';

About

force non-logged-in primo-explore users to authenticate when they are redirected to the services page.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published