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.
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/).
- Bundle: Redirect the user to the Library Card platform home page (https://wikipedialibrary.wmflabs.org/), where their Bundle eligibility is shown.
In both cases, a message should be shown to the user which says "Sorry, you are not currently authorized to access this resource."