Editors should be directed to a useful location when they attempt to access resources for which they are not authorized.**User story:** As a Library Card user, This will be on a best effort basisif I click a proxied URL to which I'm not authorized, as it is not possible to handle all error states in a friendly wayI want to be directed to a page which explains how to become authorized so that I can do so.
Chiefly, we want to account for the situations when a user attempts to navigate directly to a proxied URL, but is not authorized for access. This may be because their authorization expired, or they are no longer eligible for the Library Bundle.**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/).
- Bundle: Redirect the user to the Library Card platform home page (https://wikipedialibrary.wmflabs.org/), we should instead directwhere them to the partner page for the resource they were attempting to access.ir Bundle eligibility is shown.
In both cases, This wa message should be hardshown to implement for Library Bundle partnersthe user which says "Sorry, in which case we can instead send them to the homepage.you are not currently authorized to access this resource."