-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better handle of context access restriction #9251
Comments
@dsuren1 here my thoughts Expected behaviors and responses
MapStore can not recognize if the resource do not exist at all or if it is only protected. So we should be explicit on it. The cases for a 404 response is:
Moreover you may have problems accessing the context, the map, or both. For this reason we can simply tell the user: If you are not logged in;
If you are logged in: a message like this, (maybe explaining that the map and/or context have problem) can be ok. https://dev-mapstore.geosolutionsgroup.com/mapstore/#/viewer/3453667787 Note:
Suggested tasks.something is already in the project, to properly redirect to login. It needs to be simply reused/modified for contexts (and optionally map in contexts). Note: Check point 4 of the acceptance criteria for this |
The home page may not be present in geOrchestra if it has been configured to not provide that. Therefore we should simply tell the user to authenticate with a message on the screen or directly redirect to the login form. That's only for the geOrchestra case, of course, or other downstream projects where the home page is not used. |
Description
The context access requires modification when user faces one the below scenario
A user want to load a Context but not logged in
Current behavior: "Resource not found"
Expected behavior: Redirect to login form if the user is anonymous and try access protected context
A user want to load a Context but doesn't have permission to access it
Current behavior: "Error loading context"
Expected behavior: "User is not allowed to access this context"
Make
Back to Home page
redirect configurable in FeedbackMask component. UsemiscSettings -> homePath
Also provide an option to configure login page when provided. i.e When in Mapstore, the login panel is shown upon requesting a resource when the user is not logged in, else redirect to the loginpage (ex: for geOrchestra
/?login
this has to be handled in the respective project)Suggested tasks:
@offtherailz Kindly let me know your thoughts.
Other useful information
georchestra/mapstore2-georchestra#415
The text was updated successfully, but these errors were encountered: