For both Jira and Confluence Server.
We would like to create a custom “Access Denied/Unauthorized” page for all instances of when a user tries to access a page that they do not have permissions to access for all the various reasons (no space permissions, no project permissions, page restrictions, filter restrictions, calendars, etc.). We want to return our own custom page with information on who to contact to request access.
I am thinking perhaps implementing a javax.servlet.Filter and if there is an API that allows me to check the user’s authorization to access any page before passing the request off the the rest of the FitlerChain if authorized. Does this sound feasible and if so, any suggestions on what API to use?