User story: As a Library Card user, if I click a proxied URL to which I'm not authorized, I want to be directed to a page which explains how to become authorized so that I can do so.
Background
When accessing a resource through IP authentication, users are directed to a URL of the form https://www-website.wikipedialibrary.idm.oclc.org/. This sends them through our EZProxy server for authentication. If they are not authenticated for access, users currently receive an error message page: We are sorry, but your account does not have access to this resource. If you think you have reached this screen in error or have questions about the resource you were trying to reach, please contact your library. No further guidance is given on why the user is seeing this error, or how they can get access to this resource.
Instead of showing the user an EZProxy error, we should do one of two things depending on the partner's authorization method:
- Proxy (not Bundle): Redirect the user to the relevant application page (e.g. https://wikipedialibrary.wmflabs.org/partners/63/). Display a message: "Sorry, you are not currently authorized to access this resource, please apply to receive access."
- Bundle: Redirect the user to My Library (https://wikipedialibrary.wmflabs.org/users/my_library), where their Bundle eligibility is shown.