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
Add QGIS server access control interface for python plugin #21
Conversation
A couple of random comments/questions: Also: wouldn't be best to subclass QgsServerFilter? Cant you just add more hooks for AC to the QgsServerFilter class? What are the problems if you add more methods directly into https://github.com/qgis/QGIS/blob/master/src/server/qgsserverfilter.h ? Can't you just add security filters there? Then they would be called where they are needed, using the very same system we are using for existing "requestReady" and similar. something like: class HelloSecurityFilter(QgsServerFilter):
def __init__(self, serverIface):
super(HelloSecurityFilter, self).__init__(serverIface)
def layerPublishPermission( self , layer):
... do whatever you want with this layer
def requestReady( self):
pass # do nothing One of the main concerns I have that we are adding plugin's server specific code into core classes (like src/core/qgsmaprenderer.h). You should try to avoid this but I don't know if it is really possible. Can you please provide a minimal example python code of a new AC filter and plugin? |
Too reason why I do this:
Finally if you think that's better it's not an issue fro me to do it :-) |
It would be useful if we can limit the access on:
|
@luca76 |
@sbrunner Any idea about how to overcome what I feel is the main issue (server-specific code into "core" library)? |
OK, thanks @elpaso for your response :-) |
QEPs done via issues now. New ticket at #32 Sorry for the inconvenience. Email out soon on why. |
No description provided.